Eclipse tomcat startup project error: 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)

The reason for this is that there are many jar version dependencies. One way is to directly view the error details and modify the corresponding version information. I am using the Tomcat7 version

Solution: directly upgrade and switch to Tomcat8 to solve the problem

Guess you like

Origin blog.csdn.net/weixin_39709134/article/details/123628473