org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案
程序员文章站
2022-07-14 10:43:58
...
用maven建立web 工程,分别用Tomcat6,Tomcat7启动,都报错:
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool。
此异常,为:ClassFormatException,类格式异常
最后换成Tomcat8,启动项目就好了,这应该是tomcat 的一个缺陷。解决问题就是换成高版本的Tomcat8,即可。
四月 22, 2017 10:08:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory HelloMaven
四月 22, 2017 10:08:28 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(C:\D\MyEclipse\tomcat7\apache-tomcat-7.0.8\webapps\HelloMaven\WEB-INF\lib\javaee-api-7.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
四月 22, 2017 10:08:28 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(C:\D\MyEclipse\tomcat7\apache-tomcat-7.0.8\webapps\HelloMaven\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
四月 22, 2017 10:08:29 下午 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory HelloMaven
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1908)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1797)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1756)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1742)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1245)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:874)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
上一篇: Dokcer安装单机mysql
下一篇: UnicodeDecodeError: 'utf-8' codec can't decode byte in position : invalid continuation byte
推荐阅读
-
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案
-
tomcat启动报错:org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant
-
Tomcat报错之Invalid byte tag in constant pool 19
-
Tomcat启动报错:ClassFormatException: Invalid byte tag in constant pool: 19
-
ClassFormatException: Invalid byte tag in constant pool: 15问题解决
-
ClassFormatException: Invalid byte tag in constant pool: 15问题解决
-
ClassFormatException: Invalid byte tag in constant pool: 15问题解决
-
ClassFormatException: Invalid byte tag in constant pool: 15问题解决
-
Invalid byte tag in constant pool: 15