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

Posted java李杨勇

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse tomcat启动项目报错:Invalid byte tag in constant pool: 19 jackson-core-2.10.1.jar/] for annotatio相关的知识,希望对你有一定的参考价值。

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即可解决问题

以上是关于eclipse tomcat启动项目报错:Invalid byte tag in constant pool: 19 jackson-core-2.10.1.jar/] for annotatio的主要内容,如果未能解决你的问题,请参考以下文章

eclipse 启动tomcat报错 java.lang.OutOfMemoryError: Java heap space

eclipse 的 tomcat 启动报错(Server Tomcat v7.0 Server at localhost failed to start.)

eclipse部署tomcat报错

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

eclipse创建spring boot项目,tomcat启动成功,但http://localhost:8080无法访问报错404解决方案

eclipse导入web项目,web.xml报错