2 Replies Latest reply on Feb 15, 2011 8:46 AM by Andi D

    Embedded Container needs ServerManager

    Andi D Newbie

      Hi,

       

      I try to use Arquillian tests for my Application using the embedded Container (see http://docs.jboss.org/arquillian/reference/latest/en-US/html_single/#container.jbossas-embedded-6). Therefore I implemented the TemperatureConverterTest from http://docs.jboss.org/arquillian/reference/latest/en-US/html/gettingstarted.html.

       

      After starting the test I get an initializationError: With a ClassNotFoundException of org.jboss.jbossas.servermanager.ServerManager.

      I'm using JBossAS 6.0.0 final and have no idea where do find the class ServerManager.

       

      -------------------------------------------------------------------------------
      Test set: at.icbi.seqbench.simple.TemperatureConverterTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.195 sec <<< FAILURE!
      initializationError(some.packages.TemperatureConverterTest)  Time elapsed: 0.007 sec  <<< ERROR!
      java.lang.NoClassDefFoundError: org/jboss/jbossas/servermanager/ServerManager
              at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.createAndConfigureServerManager(JBossASLocalContainer.java:221)
              at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.setup(JBossASLocalContainer.java:64)
              at org.jboss.arquillian.impl.handler.ContainerCreator.callback(ContainerCreator.java:56)
              at org.jboss.arquillian.impl.handler.ContainerCreator.callback(ContainerCreator.java:46)
              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.beforeSuite(EventTestRunnerAdaptor.java:69)
              at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:89)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
              at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
              at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
              at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:51)
              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)
      Caused by: java.lang.ClassNotFoundException: org.jboss.jbossas.servermanager.ServerManager
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)