`

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

阅读更多
服务器使用JDK1.8,使用tomcat7.X运行web工程。
启动tomcat服务,报以下错误:

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


错误截图:


解决办法:
修改{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服务已正常。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics