严重: Compilation error
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:342)
at org.apache.jasper.compiler.JDTCompiler$1.findType(JDTCompiler.java:206)
at org.apache.jasper.compiler.JDTCompiler
1.
f
i
n
d
T
y
p
e
(
J
D
T
C
o
m
p
i
l
e
r
.
j
a
v
a
:
163
)
a
t
o
r
g
.
e
c
l
i
p
s
e
.
j
d
t
.
i
n
t
e
r
n
a
l
.
c
o
m
p
i
l
e
r
.
l
o
o
k
u
p
.
L
o
o
k
u
p
E
n
v
i
r
o
n
m
e
n
t
.
a
s
k
F
o
r
T
y
p
e
(
L
o
o
k
u
p
E
n
v
i
r
o
n
m
e
n
t
.
j
a
v
a
:
96
)
a
t
o
r
g
.
e
c
l
i
p
s
e
.
j
d
t
.
i
n
t
e
r
n
a
l
.
c
o
m
p
i
l
e
r
.
l
o
o
k
u
p
.
U
n
r
e
s
o
l
v
e
d
R
e
f
e
r
e
n
c
e
B
i
n
d
i
n
g
.
r
e
s
o
l
v
e
(
U
n
r
e
s
o
l
v
e
d
R
e
f
e
r
e
n
c
e
B
i
n
d
i
n
g
.
j
a
v
a
:
49
)
a
t
o
r
g
.
e
c
l
i
p
s
e
.
j
d
t
.
i
n
t
e
r
n
a
l
.
c
o
m
p
i
l
e
r
.
l
o
o
k
u
p
.
B
i
n
a
r
y
T
y
p
e
B
i
n
d
i
n
g
.
r
e
s
o
l
v
e
T
y
p
e
(
B
i
n
a
r
y
T
y
p
e
B
i
n
d
i
n
g
.
j
a
v
a
:
97
)
a
t
o
r
g
.
e
c
l
i
p
s
e
.
j
d
t
.
i
n
t
e
r
n
a
l
.
c
o
m
p
i
l
e
r
.
l
o
o
k
u
p
.
P
a
c
k
a
g
e
B
i
n
d
i
n
g
.
g
e
t
T
y
p
e
O
r
P
a
c
k
a
g
e
(
P
a
c
k
a
g
e
B
i
n
d
i
n
g
.
j
a
v
a
:
167
)
a
t
o
r
g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
r
g
.
a
p
a
c
h
e
.
c
a
t
a
l
i
n
a
.
v
a
l
v
e
s
.
E
r
r
o
r
R
e
p
o
r
t
V
a
l
v
e
.
i
n
v
o
k
e
(
E
r
r
o
r
R
e
p
o
r
t
V
a
l
v
e
.
j
a
v
a
:
102
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
a
t
a
l
i
n
a
.
c
o
r
e
.
S
t
a
n
d
a
r
d
E
n
g
i
n
e
V
a
l
v
e
.
i
n
v
o
k
e
(
S
t
a
n
d
a
r
d
E
n
g
i
n
e
V
a
l
v
e
.
j
a
v
a
:
109
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
a
t
a
l
i
n
a
.
c
o
n
n
e
c
t
o
r
.
C
o
y
o
t
e
A
d
a
p
t
e
r
.
s
e
r
v
i
c
e
(
C
o
y
o
t
e
A
d
a
p
t
e
r
.
j
a
v
a
:
298
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
o
y
o
t
e
.
h
t
t
p
11.
H
t
t
p
11
P
r
o
c
e
s
s
o
r
.
p
r
o
c
e
s
s
(
H
t
t
p
11
P
r
o
c
e
s
s
o
r
.
j
a
v
a
:
857
)
a
t
o
r
g
.
a
p
a
c
h
e
.
c
o
y
o
t
e
.
h
t
t
p
11.
H
t
t
p
11
P
r
o
t
o
c
o
l
1.findType(JDTCompiler.java:163) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:96) at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49) at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:97) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:167) at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2187) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:974) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1164) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:366) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:623) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:392) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:429) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspSerxsvlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol
1.findType(JDTCompiler.java:163)atorg.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:96)atorg.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)atorg.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:97)atorg.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:167)atorg.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2187)atorg.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:974)atorg.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1164)atorg.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:366)atorg.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:623)atorg.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:392)atorg.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:429)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:349)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:327)atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:314)atorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)atorg.apache.jasper.servlet.JspSerxsvlet.serviceJspFile(JspServlet.java:313)atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)atorg.apache.coyote.http11.Http11ProtocolHttp11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.base/java.lang.Thread.run(Thread.java:844)
※原因是tomcat默认版本是6,我现在的版本是tomcat7,在pom.xml中添加如下代码
```xml
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8888</port>
</configuration>
</plugin>
</plugins>
</build>
下次再运行时,注意此处改成tomcat7:run
运行成功!