4 Replies Latest reply on Mar 24, 2011 12:38 AM by Ryan Cuprak

    (alpha5) NoClassDefFoundError: org/jboss/util/id/SerialVersion

    Ryan Cuprak Newbie

      I am getting two exceptions when I go to run my simple unit test:

      Test log file:

      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.

       

      Console:

      java.lang.NoClassDefFoundError: org/jboss/util/id/SerialVersion

       

      I am not exactly sure what is going wrong. Application deploys fine in full glassfish.

       

      -Ryan

       

       

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.ctjava.services.TestSpeakerService
      Mar 23, 2011 8:03:20 PM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration
      INFO: Could not read active container configuration: null
      Mar 23, 2011 8:03:22 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
      INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
      Mar 23, 2011 8:03:22 PM org.hibernate.validator.util.Version <clinit>
      INFO: Hibernate Validator null
      Mar 23, 2011 8:03:22 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      Mar 23, 2011 8:03:23 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
      INFO: Grizzly Framework 1.9.31 started in: 107ms - bound to [0.0.0.0:8181]
      Mar 23, 2011 8:03:23 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
      INFO: Grizzly Framework 1.9.31 started in: 98ms - bound to [0.0.0.0:4848]
      Mar 23, 2011 8:03:23 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
      INFO: Grizzly Framework 1.9.31 started in: 75ms - bound to [0.0.0.0:3700]
      Mar 23, 2011 8:03:23 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
      INFO: Grizzly Framework 1.9.31 started in: 52ms - bound to [0.0.0.0:7676]
      Mar 23, 2011 8:03:23 PM com.sun.enterprise.v3.server.AppServerStartup run
      INFO: GlassFish Server Open Source Edition 3.1 (java_re-private) startup time : Embedded (942ms), startup services(455ms), total(1,397ms)
      Mar 23, 2011 8:03:23 PM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread startConnector
      INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://192.168.1.106:8686/jndi/rmi://192.168.1.106:8686/jmxrmi
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.SecurityLifecycle <init>
      INFO: SEC1002: Security Manager is OFF.
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.SecurityLifecycle onInitialization
      INFO: SEC1010: Entering Security Startup Service
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.PolicyLoader loadPolicy
      INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
      INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
      INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
      INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.security.SecurityLifecycle onInitialization
      INFO: SEC1011: Security Service(s) Started Successfully
      Mar 23, 2011 8:03:26 PM org.glassfish.api.ActionReport failure
      SEVERE: Exception while deploying the app [test]
      Mar 23, 2011 8:03:26 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
      SEVERE: org/jboss/util/id/SerialVersion
      java.lang.NoClassDefFoundError: org/jboss/util/id/SerialVersion
                at javax.security.jacc.WebResourcePermission.<clinit>(WebResourcePermission.java:80)
                at com.sun.enterprise.security.web.integration.WebSecurityManager.<clinit>(WebSecurityManager.java:127)
                at com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.createManager(WebSecurityManagerFactory.java:285)
                at com.sun.enterprise.security.SecurityContainer.generatePolicy(SecurityContainer.java:120)
                at com.sun.enterprise.security.SecurityContainer.postConstruct(SecurityContainer.java:103)
                at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
                at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
                at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
                at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
                at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
                at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
                at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:93)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:955)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:665)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
                at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:118)
                at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:97)
                at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:88)
                at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.deploy(GlassFishContainer.java:164)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:141)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:226)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:114)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:100)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:78)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:51)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:86)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:79)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:217)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:78)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:69)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:70)
                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:170)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)
                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)
                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)
                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)
      Caused by: java.lang.ClassNotFoundException: org.jboss.util.id.SerialVersion
                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)
                ... 117 more
      classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
      SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@2a134eca
      Mar 23, 2011 8:03:26 PM org.glassfish.deployment.admin.DeployCommand execute
      SEVERE: Exception while deploying the app [test] : org/jboss/util/id/SerialVersion
      java.lang.ClassNotFoundException: org.jboss.util.id.SerialVersion
                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)
                at javax.security.jacc.WebResourcePermission.<clinit>(WebResourcePermission.java:80)
                at com.sun.enterprise.security.web.integration.WebSecurityManager.<clinit>(WebSecurityManager.java:127)
                at com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.createManager(WebSecurityManagerFactory.java:285)
                at com.sun.enterprise.security.SecurityContainer.generatePolicy(SecurityContainer.java:120)
                at com.sun.enterprise.security.SecurityContainer.postConstruct(SecurityContainer.java:103)
                at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
                at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
                at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
                at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
                at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
                at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
                at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:93)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:955)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:665)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
                at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:118)
                at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:97)
                at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:88)
                at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.deploy(GlassFishContainer.java:164)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:141)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:226)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:114)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:100)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:78)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:51)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:86)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:79)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:217)
                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:78)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:69)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:70)
                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:170)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)
                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)
                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)
                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)
      PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [test] : org/jboss/util/id/SerialVersion. Please see server.log for more details.
          [name=test
      Mar 23, 2011 8:03:27 PM com.sun.enterprise.web.WebContainer createHttpListener
      INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8181]
      Mar 23, 2011 8:03:27 PM com.sun.enterprise.web.WebContainer createHttpListener
      INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]
      Mar 23, 2011 8:03:27 PM com.sun.enterprise.web.WebContainer createHosts
      INFO: WEB0171: Created virtual server [server]
      Mar 23, 2011 8:03:27 PM com.sun.enterprise.web.WebContainer createHosts
      INFO: WEB0171: Created virtual server [__asadmin]
      Mar 23, 2011 8:03:27 PM com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
      INFO: WEB0172: Virtual server [server] loaded default web module []
      PlainTextActionReporterFAILUREApplication test is not deployed on this target [server]@SLTests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.824 sec <<< FAILURE!
      
      
      Results :
      
      
      Tests in error: 
        testCreateSpeaker(org.ctjava.services.TestSpeakerService)
      
      
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      
      
      

      Log output:

       

      -------------------------------------------------------------------------------
      Test set: org.ctjava.services.TestSpeakerService
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.824 sec <<< FAILURE!
      testCreateSpeaker(org.ctjava.services.TestSpeakerService)  Time elapsed: 0.016 sec  <<< ERROR!
      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.
                at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:63)
                at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:56)
                at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:30)
                at org.jboss.arquillian.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:105)
                at org.jboss.arquillian.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:96)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:65)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContext(ContainerDeploymentContextHandler.java:133)
                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createTestContext(ContainerDeploymentContextHandler.java:120)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.TestContextHandler.createTestContext(TestContextHandler.java:82)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)
                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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)
                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:101)
                at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:251)
                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:214)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)
                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)
                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:228)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:173)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)
                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)
                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)
                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)
      
      
      
        • 1. (alpha5) NoClassDefFoundError: org/jboss/util/id/SerialVersion
          Aslak Knutsen Master

          You have the jboss-javaee spec APIs on ClassPath?

          • 2. (alpha5) NoClassDefFoundError: org/jboss/util/id/SerialVersion
            Ryan Cuprak Newbie

            Yes, I have the jboss-javaee spec on the classpath (per this thread: http://community.jboss.org/thread/164279?tstart=0). I thought that it was the solution for that thread. I have it listed as provided in my pom so (provided that I understand provided), I didn't think it would be used at runtime.

            What does this mean in terms of option 2?

            http://community.jboss.org/wiki/WhatsthecauseofthisexceptionjavalangClassFormatErrorAbsentCode

             

            -Ryan

            • 3. (alpha5) NoClassDefFoundError: org/jboss/util/id/SerialVersion
              Aslak Knutsen Master

              It basically means there are no good JavaEE Apis jar for all cases. The Apis require some impls and are not pure interfaces etc.

               

              The Sun provided one fails on all runtimes if found on classpath, the JBoss one fails on 'some' of the other containers if found on runtime.

               

              'provided' is still on test classpath in the module where it is defined, it only means is should not be pulled in transitivly to other modules.

               

              One option could be to look at using something like this in the new maven surefire plugin: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#classpathDependencyExcludes

              • 4. Re: (alpha5) NoClassDefFoundError: org/jboss/util/id/SerialVersion
                Ryan Cuprak Newbie

                Thanks! - I didn't expect provided to be on the test classpath.

                 

                As for that JavaEE API jar issue the surefire plugin suggestion worked. Initially it was a little tricky as the <type> on that dependency was a pom so it was importing it and not removing it (at least on 2.8). So I picked apart the dependencies and added the relevant exclusions. As my project progresses I may need to add additional dependencies/exclusions from the spec pom (.m2/repository/org/jboss/spec/jboss-javaee-6.0-1.0.0.Final.pom).

                 

                This is what works:

                <!--
                          Removed this
                         <dependency>
                            <groupId>org.jboss.spec</groupId>
                            <artifactId>jboss-javaee-6.0</artifactId>
                            <version>1.0.0.Final</version>
                            <type>pom</type>
                            <scope>provided</scope>
                        </dependency>
                        -->
                        <dependency>
                            <groupId>org.jboss.spec.javax.annotation</groupId>
                            <artifactId>jboss-annotations-api_1.1_spec</artifactId>
                            <version>1.0.0.Final</version>
                            <scope>provided</scope>
                        </dependency>
                        <dependency>
                            <groupId>org.jboss.spec.javax.ejb</groupId>
                            <artifactId>jboss-ejb-api_3.1_spec</artifactId>
                            <version>1.0.0.Final</version>
                            <scope>provided</scope>
                        </dependency>
                        <dependency>
                            <groupId>javax.enterprise</groupId>
                            <artifactId>cdi-api</artifactId>
                            <scope>provided</scope>
                            <version>1.0</version>
                        </dependency>
                        <dependency>
                            <groupId>com.sun.faces</groupId>
                            <artifactId>jsf-api</artifactId>
                            <version>2.0.3-b05</version>
                            <scope>provided</scope>
                        </dependency>
                        <dependency>
                            <groupId>javax.validation</groupId>
                            <artifactId>validation-api</artifactId>
                            <version>1.0.0.GA</version>
                            <scope>provided</scope>
                        </dependency>
                        <dependency>
                            <groupId>org.hibernate.javax.persistence</groupId>
                            <artifactId>hibernate-jpa-2.0-api</artifactId>
                            <version>1.0.0.Final</version>
                            <scope>provided</scope>
                        </dependency>
                
                <build>
                        <plugins>
                            <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <version>2.8</version>
                                <configuration>
                                    <classpathDependencyExcludes>
                                        <classpathDependencyExcludes>org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec</classpathDependencyExcludes>
                                        <classpathDependencyExcludes>org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec</classpathDependencyExcludes>
                                        <classpathDependencyExcludes>javax.enterprise:cdi-api</classpathDependencyExcludes>
                                        <classpathDependencyExcludes>com.sun.faces:jsf-api</classpathDependencyExcludes>
                                        <classpathDependencyExcludes>javax.validation:validation-api</classpathDependencyExcludes>
                                        <classpathDependencyExcludes>org.hibernate.javax.persistence:hibernate-jpa-2.0-api</classpathDependencyExcludes>
                                    </classpathDependencyExcludes>
                                </configuration>
                            </plugin>
                          </plugins>
                 </build>