1 Reply Latest reply on Sep 24, 2013 10:22 AM by Tomaz Cerar

    JBoss AS7 - WELD 2.0.4 - java.lang.IllegalAccessError:

    Sandipan Autane Newbie

      Hi,

       

      I am using JBoss AS7 for my project. I was facing issues with @Inject and some where I read WELD 2.0.4 has fixed this issue. So I downloaded WELD 2.0.4 and configured in modules under org/jboss/weld.

       

      Now when I start my Jboss server I am getting below exception.Please help.

       

      18:56:22,192 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."************.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."************.wa".PARSE: Failed to process phase PARSE of deployment "************.wa"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]

        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.IllegalAccessError: tried to access class org.jboss.weld.xml.BeansXmlHandler$1 from class org.jboss.weld.xml.BeansXmlHandler

        at org.jboss.weld.xml.BeansXmlHandler.<init>(BeansXmlHandler.java:185)

        at org.jboss.as.weld.deployment.BeansXmlParser.parse(BeansXmlParser.java:83)

        at org.jboss.as.weld.deployment.processors.BeansXmlProcessor.parseBeansXml(BeansXmlProcessor.java:133)

        at org.jboss.as.weld.deployment.processors.BeansXmlProcessor.deploy(BeansXmlProcessor.java:97)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        ... 5 more