Dec 25, 2019 4:40:46 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar SEVERE: Unable to process Jar entry [module-info.class] from Jar [jar:file:/home/appops/webroot/WEB-INF/lib/lombok-1.18.6.jar!/] for annotations 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:136) at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:59) at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:208) at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:118) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2055) at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1897) at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1882) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1314) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
解决:试着将tomcat7.0.52升级到tomcat8.0.42 错误不报了,但是任然无法启动 , 查看了下,lombok包是其它包引入的,由于工程并未使用lombok相关注解,所以排除了lombok包
其它方案:https://stackoverflow.com/a/52882816