1 Reply Latest reply on Jan 4, 2011 4:48 PM by Aslak Knutsen

    Best practice for running against managed AS 6 Final?

    John Ament Master

      Hi there

       

      So whenever I attempt to run arquillian against a managed AS 6 on my work machine, I keep getting the following exception

       

      -------------------------------------------------------------------------------

      Test set: com.coat.web.flashsales.observers.FullMessageObserverTest

      -------------------------------------------------------------------------------

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.864 sec <<< FAILURE!

      com.coat.web.flashsales.observers.FullMessageObserverTest  Time elapsed: 0 sec  <<< ERROR!

      org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.DeploymentException: Could not deploy test.war

          at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

          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:62)

          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)

          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)

          at org.apache.maven.surefire.Surefire.run(Surefire.java:177)

          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:345)

          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

      Caused by: org.jboss.arquillian.spi.DeploymentException: Could not deploy test.war

          at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.deploy(JBossASLocalContainer.java:146)

          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)

          ... 18 more

      Caused by: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:

          java.lang.ClassNotFoundException: org.jboss.weld.exceptions.DeploymentException (no security manager: RMI class loader disabled)

          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:227)

          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)

          at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)

          at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)

          at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)

          at org.jboss.jbossas.servermanager.Server.invoke(Server.java:936)

          at org.jboss.jbossas.servermanager.Server.invoke(Server.java:925)

          at org.jboss.jbossas.servermanager.Server.deploy(Server.java:872)

          at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.deploy(JBossASLocalContainer.java:142)

          ... 21 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.weld.exceptions.DeploymentException (no security manager: RMI class loader disabled)

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)

          at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)

          at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)

          at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)

          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)

          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

          at java.util.TreeMap.buildFromSorted(TreeMap.java:2381)

          at java.util.TreeMap.buildFromSorted(TreeMap.java:2322)

          at java.util.TreeMap.readObject(TreeMap.java:2268)

          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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:225)

          ... 29 more

       

      I've already put weld-core 1.1 on my classpath.  Anything else you can think of that I'm missing?