glassfish
  1. glassfish
  2. GLASSFISH-14635

Error creating managed object for class org.jboss.weld.servlet.WeldListener

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.1
    • Fix Version/s: not determined
    • Component/s: embedded
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      14,635

      Description

      Running Arquillian (examples, com.acme.cdi.InjectionTestCase) against GF
      Embedded 3.1-b28 and get the WeldListener exception below.
      Running the com.acme.cdi.InjectionTestCase_test.war against standalone
      glassfish-3.1-b24 deploys fine.

      [#|2010-11-12T09:22:31.111+0100|INFO|glassfish3.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=15;_ThreadName=Thread-1;|[AutoDeploy]
      Successfully autodeployed : D:\Program
      Files\glassfish-3.1-b24\glassfish\domains\arquillian\autodeploy\com.acme.cdi.InjectionTestCase_test.war.|#]

      Exception from embedded deployment:

      WARNING: java.lang.IllegalStateException: ContainerBase.addChild: start:
      org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException:
      javax.servlet.ServletException:
      com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
      managed object for class org.jboss.weld.servlet.WeldListener
      java.lang.IllegalStateException: ContainerBase.addChild: start:
      org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException:
      javax.servlet.ServletException:
      com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
      managed object for class org.jboss.weld.servlet.WeldListener
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1934)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1611)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:242)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:262)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:438)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:243)
      at
      org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:193)
      at
      org.jboss.arquillian.container.glassfish.embedded_3.GlassFishEmbeddedContainer.deploy(GlassFishEmbeddedContainer.java:164)
      at
      org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)
      at
      org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:50)
      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
      at
      org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
      at
      org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:96)
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:162)
      at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:186)
      at
      org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      12.11.2010 09:17:34 com.sun.logging.LogDomains$1 log
      SCHWERWIEGEND: Exception while invoking class
      com.sun.enterprise.web.WebApplication start method
      java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild:
      start: org.apache.catalina.LifecycleException:
      java.lang.IllegalArgumentException: javax.servlet.ServletException:
      com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
      managed object for class org.jboss.weld.servlet.WeldListener
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:127)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:242)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:262)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:438)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:243)
      at
      org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:193)
      at
      org.jboss.arquillian.container.glassfish.embedded_3.GlassFishEmbeddedContainer.deploy(GlassFishEmbeddedContainer.java:164)
      at
      org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)
      at
      org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:50)
      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
      at
      org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
      at
      org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:96)
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:162)
      at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:186)
      at
      org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
      at
      org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      12.11.2010 09:17:34 com.sun.logging.LogDomains$1 log
      SCHWERWIEGEND: Exception while loading the app
      classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
      SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@354093

        Activity

        Hide
        myfear added a comment -

        Created an attachment (id=5435)
        Testcase WAR

        Show
        myfear added a comment - Created an attachment (id=5435) Testcase WAR
        Hide
        Bhavanishankar added a comment -

        For v3.1 GlassFish, Arquillian should use these Embedded GlassFish APIs:

        http://embedded-glassfish.java.net/nonav/apidocs/

        (These are the formalized APIs for v3.1 and beyond).

        org.glassfish.embeddable.GlassFish is the starting point of the APIs.

        I am closing this issue.

        Please feel free to re-open this or file a new issue if the problem persists when switching to new APIs.

        Show
        Bhavanishankar added a comment - For v3.1 GlassFish, Arquillian should use these Embedded GlassFish APIs: http://embedded-glassfish.java.net/nonav/apidocs/ (These are the formalized APIs for v3.1 and beyond). org.glassfish.embeddable.GlassFish is the starting point of the APIs. I am closing this issue. Please feel free to re-open this or file a new issue if the problem persists when switching to new APIs.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            myfear
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: