eclipse tomcat启动项目报错:Invalid byte tag in constant pool: 19 jackson-core-2.10.1.jar/] for annotatio

2年前 (2022) 程序员胖胖胖虎阿
281 0 0
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
    at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97)
    at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:55)
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:176)
    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:85)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2123)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1985)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1946)
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1931)

这种原因是很多jar版本依赖问题、一种方法是直接查看报错详情修改对应的版本信息。我采用的是Tomcat7版本

解决方法:直接升级切换为Tomcat8即可解决问题

相关文章

暂无评论

暂无评论...