欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ClassFormatException: Invalid byte tag in constant pool: 15问题解决

程序员文章站 2022-07-04 13:37:10
...
服务器使用JDK1.8,使用tomcat7.X运行web工程。
启动tomcat服务,报以下错误:

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15


错误截图:
ClassFormatException: Invalid byte tag in constant pool: 15问题解决
            
    
    博客分类: 学习资料Tomcat tomcatjava 

解决办法:
修改{tomcat路径}/conf/web.xml文件的web-app标签,在其后面添加metadata-complete="true"属性即可。

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


重启tomcat服务已正常。
相关标签: tomcat java