Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3435

Possibly invalid module-info.class in jog4j-api-2-17.1.jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 2.17.1
    • None
    • API
    • None
    • SAP WEB AS 7.50.20 (AIX)
      JVM 1.8 (SAP JVM)

    Description

      When deploying an application containing log4j-api-2.17.1.jar retrieved via maven dependency

      <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-api</artifactId>
          <version>2.17.1</version>
      </dependency>
      

      onto a SAP WebApplicationServer running Java 8.1, the deployment (using NWDI) fails reporting 

      com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE DPL.DCAPI.1027] DeploymentException.
      ...
      Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 19 at index 5.
      

      This error is thrown due to an alleged java version conflict, although log4j 2.17.1 requires Java 8 only and the application server (and it's deployment mechanism) is running on Java 8. After evaluating the feedback from SAP support, it seems the attached file module-info.class located in log4j-api-2.17.1.jar/META-INF/versions/9/ is the reason for this behaviour. If we remove this file from the jar, the deployment is successful.

       

      Attachments

        1. module-info.class
          0.7 kB
          Michael Voss

        Activity

          People

            Unassigned Unassigned
            vossm Michael Voss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: