tomcat部署新的项目的时候出现报错信息: Invalid byte tag in constant pool: 15

上面一堆tomcat启动的提示信息省略掉,下面是报错的具体信息:

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: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.addChildInternal(ContainerBase.java:812)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1044)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:967)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1346)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:294)

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.ContainerBase.backgroundProcess(ContainerBase.java:1233)

at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1391)

at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1401)

at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1380)

at java.lang.Thread.run(Thread.java:745)

先贴上控制栏的报错信息,以下为解决方式:

首先我把所有部署过得项目都删掉,然后重新启动tomcat之后可以启动成功,并且可以看到欢迎页面,然后依次部署几个自己写的小的servlet测试页面也没有事,正常运行了

可是部署有些项目的时候就给报这个错误了,网上这个错误信息似乎好少,历尽艰辛 终于找到可用的解决办法了,具体如下 贴出来警示自己,造福后人:

{tomcat路径}/conf/web.xml 修改方法:

metadata-complete="true">



原文链接:点击打开链接


现在出来最终版解决办法,tomcat7 卸了,直接换上了tomcat 8 各种顺畅。也没有类似问题,不过eclipse需要更新下版本。之前的版本上没有tomcat 8 的支持

你可能感兴趣的:(linux)