org.apache.tomcat.util.bcel.classfile.ClassFormatException

org.apache.tomcat.util.bcel.classfile.ClassFormatException

Scroll Down

maven 中tomcat7和jdk8有点冲突

可以忽略 或者 升级Tomcat版本

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid constant pool reference: 256. Constant pool size is: 79
	at org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:184)
	at org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:203)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:95)
	at org.apache.tomcat.util.bcel.classfile.Code.<init>(Code.java:85)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:126)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:58)
	at org.apache.tomcat.util.bcel.classfile.Method.<init>(Method.java:72)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:268)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:128)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2134)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2010)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1976)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1961)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
	at java.util.concurrent.FutureTask.run(FutureTask.java)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)