ClassFormatException: Invalid byte tag in constant pool

4 篇文章 0 订阅

工程启动报错信息: Starting Servlet Engine: Apache Tomcat/7.0.11
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.<init>(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:1911)
 at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1800)
 at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1759)
 at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1745)
 at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1249)
 at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
 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:5061)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)

 

修改方法:

<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee                      

http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true" >

 

转自:

http://stackoverflow.com/questions/6751920/tomcat-7-servlet-3-0-invalid-byte-tag-in-constant-pool

 

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值