https://bz.apache.org/bugzilla/show_bug.cgi?id=60688

            Bug ID: 60688
           Summary: Tomcat should skip or handle module-info.class when
                    scanning for annotations
           Product: Tomcat 8
           Version: 8.5.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: kat...@gmail.com
  Target Milestone: ----

Libraries compatible with Java 8 or older may also contain module-info.class
compiled for Java 9. Tomcat logs the following message for such libraries:

SEVERE: Unable to process Jar entry [module-info.class] from Jar
[file:...../javax.json-1.1.0-M1.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:97)
at
org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:54)
at
org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:174)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:83)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2053)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2000)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1970)
at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1923)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1163)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5087)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to