0 Replies Latest reply on Apr 2, 2018 2:56 PM by RICARDO NEVES

    IllegalAccessError: tried to access class Slf4jLogger from class Slf4jLogger$1

    RICARDO NEVES Newbie

      Good afternoon,
      I'm getting the exception in wildfly 11. In Wildfly 10 this does not happen.

       

      13:35:54,278 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."FlashPhoenix.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."FlashPhoenix.war".WeldStartService: Failed to start service

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

      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)

      Caused by: org.jboss.weld.exceptions.DeploymentException: tried to access class org.jboss.logging.Slf4jLogger from class org.jboss.logging.Slf4jLogger$1

      at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorServices.java:66)

      at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:43)

      at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:51)

      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer.createClassBeans(ConcurrentBeanDeployer.java:71)

      at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:283)

      at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:424)

      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)

      at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)

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

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

      ... 3 more

      Caused by: java.lang.IllegalAccessError: tried to access class org.jboss.logging.Slf4jLogger from class org.jboss.logging.Slf4jLogger$1

      at java.lang.Class.getEnclosingMethod0(Native Method)

      at java.lang.Class.getEnclosingMethodInfo(Class.java:1072)

      at java.lang.Class.getEnclosingClass(Class.java:1272)

      at org.jboss.weld.util.reflection.Reflections.isTopLevelOrStaticNestedClass(Reflections.java:422)

      at org.jboss.weld.util.Beans.isTypeManagedBeanOrDecoratorOrInterceptor(Beans.java:501)

      at org.jboss.weld.bootstrap.BeanDeployer.createClassBean(BeanDeployer.java:211)

      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:74)

      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:71)

      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)

      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)

      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)

      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      13:35:54,287 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "FlashPhoenix.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"FlashPhoenix.war\".WeldStartService" => "Failed to start service

          Caused by: org.jboss.weld.exceptions.DeploymentException: tried to access class org.jboss.logging.Slf4jLogger from class org.jboss.logging.Slf4jLogger$1

          Caused by: java.lang.IllegalAccessError: tried to access class org.jboss.logging.Slf4jLogger from class org.jboss.logging.Slf4jLogger$1"}}

       

      tks!