Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1161

[ASF BZ 60688] Unable to process Jar entry [module-info.class] from Jar ... for annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.1.6.DR1
    • JWS 3.1.0 SP4 GA
    • tomcat7
    • None
    • 2
    • +
    • Hide

      Add the jar name (for example, "log4j-api-2.11.1.jar") to the system property "tomcat.util.scan.DefaultJarScanner.jarsToSkip" which is already defined in conf/catalina.properties.

      Show
      Add the jar name (for example, "log4j-api-2.11.1.jar") to the system property "tomcat.util.scan.DefaultJarScanner.jarsToSkip" which is already defined in conf/catalina.properties .
    • Hide

      1. Download and extract apache-log4j-2.11.1-bin.zip from https://logging.apache.org/log4j/2.0/download.html
      2. Put log4j-api-2.11.1.jar under webapps/<example-app>/WEB-INF/lib/
      3. Start tomcat
      4. You will see the following log message at start-up:

      Oct 05, 2018 5:27:47 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar
      SEVERE: Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [jar:file:...(snip).../WEB-INF/lib/log4j-api-2.11.1.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(Unknown Source)
      	at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(Unknown Source)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(Unknown Source)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.processAnnotations(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.webConfig(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.configureStart(Unknown Source)
      	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Unknown Source)
      	at org.apache.catalina.core.StandardContext.startInternal(Unknown Source)
      	at org.apache.catalina.util.LifecycleBase.start(Unknown Source)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown Source)
      	at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
      	at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
      	at org.apache.catalina.startup.HostConfig.deployDirectory(Unknown Source)
      	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(Unknown Source)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      Show
      1. Download and extract apache-log4j-2.11.1-bin.zip from https://logging.apache.org/log4j/2.0/download.html 2. Put log4j-api-2.11.1.jar under webapps/<example-app>/WEB-INF/lib/ 3. Start tomcat 4. You will see the following log message at start-up: Oct 05, 2018 5:27:47 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar SEVERE: Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [jar:file:...(snip).../WEB-INF/lib/log4j-api-2.11.1.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(Unknown Source) at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(Unknown Source) at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(Unknown Source) at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(Unknown Source) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(Unknown Source) at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(Unknown Source) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(Unknown Source) at org.apache.catalina.startup.ContextConfig.processAnnotations(Unknown Source) at org.apache.catalina.startup.ContextConfig.webConfig(Unknown Source) at org.apache.catalina.startup.ContextConfig.configureStart(Unknown Source) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.StandardContext.startInternal(Unknown Source) at org.apache.catalina.util.LifecycleBase.start(Unknown Source) at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown Source) at org.apache.catalina.core.ContainerBase.addChild(Unknown Source) at org.apache.catalina.core.StandardHost.addChild(Unknown Source) at org.apache.catalina.startup.HostConfig.deployDirectory(Unknown Source) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)

              rhn-support-csutherl Coty Sutherland
              rhn-support-mmiura Masafumi Miura
              Matus Madzin Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: