温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》
  • 首页 > 
  • 教程 > 
  • 开发技术 > 
  • tomcat部署新的项目启动时出现报错信息: Invalid byte tag in constant pool: 15

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

发布时间:2020-06-26 19:06:27 来源:网络 阅读:3231 作者:阿山哥258 栏目:开发技术

......

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.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路径}/conf/web.xml 在下面代码中添加红色部分:

<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">


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI