1 Reply Latest reply on Jun 21, 2018 4:20 AM by Philippe Marschall

    log4j-api-2.10.0.jar throws java.lang.IllegalStateException

    Ramesh Y Newbie

      Hi,

      We are using wildfly 10.1.0 to deploy the war file which is generating from spring boot application. When deploying the war on server throws the below warning message on server startup. It's not making any issues with the application, but was curious what caused this issue. Is this an issue with Wildfly or the log4j-api-2.10.0 version. If I change it to log4j-api-2.9.1 is working fine, but we are facing some other issues with the lower version log4j.

       

      Any help would be appreciated!

       

      [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class module-info.class at /C:/wildfly-10.1.0.Final/bin/content/WAR_NAME.war/WEB-INF/lib/log4j-api-2.10.0.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 24

      at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1416)

      at org.jboss.jandex.Indexer.index(Indexer.java:1450)

      at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)

      at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      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)

       

      Thanks!