2 Replies Latest reply on Jan 24, 2011 5:45 PM by Michael Schuetz

    NoClassDefFoundError when running Glassfish embedded 3.1-b38

    Michael Schuetz Novice

      Hi to all,

       

      last Glassfish embedded version I did successfully use with Arquillian Alpha4 was 3.1-b13.

       

      Anyway, with this version I was facing troubles with running in offline mode: http://java.net/jira/browse/GLASSFISH-15652 .

       

      Latest 3.1-b38 resolves to:

       

      java.lang.NoClassDefFoundError: org/glassfish/api/embedded/Server$Builder

          at org.jboss.arquillian.container.glassfish.embedded_3.GlassFishEmbeddedContainer.setup(GlassFishEmbeddedContainer.java:79)

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

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

          at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)

          at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)

          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.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

          at $Proxy0.invoke(Unknown Source)

          at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)

          at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)

          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      Caused by: java.lang.ClassNotFoundException: org.glassfish.api.embedded.Server$Builder

          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)

          ... 29 more

       

       

      Any state on this?

       

       

      Thanks Michael