8 Replies Latest reply on Aug 27, 2013 7:11 AM by Aslak Knutsen

    JBoss 7: remote testing of an EAR

    Juergen Zimmermann Master

      I'm migrating from JBoss 6 and Arquillian Alpha5 to JBoss 7 and Arquillian 1.0.0.CR1. So far I managed to compile my sources, and the deployment is taking place, i.e. the ear arrives inside JBoss 7.

       

      However, for Alpha 5 I needed an application.xml which declares test.war. This causes the following stacktrace inside JBoss. Any hint is appreciated.

      06:49:33,595 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."test.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "test.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

              at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Unable to process modules in application.xml for EAR ["/C:/Software/jboss-7.0.0.CR1-b1321/bin/content/test.ear"], module file test.war not found

              at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:181)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

              ... 5 more

        • 1. Re: JBoss 7: remote testing of an EAR
          Aslak Knutsen Master

          What does your @Deployment look like?

          • 2. Re: JBoss 7: remote testing of an EAR
            Juergen Zimmermann Master

            The methods signature:

            @Deployment
            public static EnterpriseArchive createTestArchive() {...}

             

            Or do you also mean the method body?

            • 4. Re: JBoss 7: remote testing of an EAR
              Juergen Zimmermann Master

                final EnterpriseArchive tmpEar = ShrinkWrap.create(EnterpriseArchive.class);
                tmpEar.as(ExplodedImporter.class).importDirectory(EAR_DIR);
                tmpEar.delete(ArchivePaths.create("META-INF/application.xml"));
               
                final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, TEST_EAR);
                final Filter<ArchivePath> filterSVN = Filters.exclude(".*/\\.svn.*");
                ear.merge(tmpEar, filterSVN);
               
                final String applicationXml = "<?xml version=\"1.0\"?>" + NEWLINE
                                                    + "<application xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" + NEWLINE
                                                    + "             xmlns=\"http://java.sun.com/xml/ns/javaee\"" + NEWLINE
                                                    + "             xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee" + NEWLINE
                                                    + "                 http://java.sun.com/xml/ns/javaee/application_6.xsd\"" + NEWLINE
                                                    + "             version=\"6\">" + NEWLINE
                                                    + " <initialize-in-order>true</initialize-in-order>" + NEWLINE
                                                    + " <module>" + NEWLINE
                                                    + "  <ejb>" + EAR_PROJEKT_NAME + SUFFIX_EJB_PROJEKT + ".jar</ejb>" + NEWLINE
                                                    + " </module>" + NEWLINE
                                                    + " <module>" + NEWLINE
                                                    + "  <web>" + NEWLINE
                                                    + "   <web-uri>test.war</web-uri>" + NEWLINE
                                                    + "   <context-root>test</context-root>" + NEWLINE
                                                    + "  </web>" + NEWLINE
                                                    + " </module>" + NEWLINE
                                                    + "</application>" + NEWLINE;
                ear.setApplicationXML(new StringAsset(applicationXml));


                final JavaArchive tmpJar = ShrinkWrap.create(JavaArchive.class);
                tmpJar.as(ExplodedImporter.class).importDirectory(EJB_DIR);
                final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class,
                                                       EAR_PROJEKT_NAME + SUFFIX_EJB_PROJEKT + ".jar");
                ejbJar.merge(tmpJar, filterSVN);

                ejbJar.addPackage(KundenverwaltungTest.class.getPackage())
                      .addClasses(AbstractTest.class, DbReload.class)
                      .addAsResource(new File(RESOURCES_DIR + DbReload.PROPSFILE))
                      .addAsResource(new File(RESOURCES_DIR + DbReload.XML_FLAT_DATASET))
                         .addAsResource(new File(RESOURCES_DIR + DbReload.XML_FLAT_DATASET_DTD));
               
                final WebArchive webWar = ShrinkWrap.create(WebArchive.class, "test.war");
                webWar.add(EmptyAsset.INSTANCE, ArchivePaths.create("/__NOT_EMPTY__"));

                final String dbUnitFilename = System.getenv("USERPROFILE") + "/.m2/repository/org/dbunit/dbunit/" + DBUNIT_VERSION
                                                    + "/dbunit-" + DBUNIT_VERSION + ".jar";
                ear.addAsModule(ejbJar)
                   .addAsModule(webWar)
                   .addAsLibrary(new File(dbUnitFilename));
                 
                    // https://issues.jboss.org/browse/SHRINKWRAP-295
              //           .addAsLibrary(DependencyResolvers.use(MavenDependencyResolver.class)
              //                                      .artifact("org.dbunit:dbunit:" + DBUNIT_VERSION)
              //                                      .resolveAs(JavaArchive.class)
              //                                      .iterator()
              //                                      .next());
               
                ear.delete(ArchivePaths.create("META-INF/MANIFEST.MF"));
                final String ManifestMF = "Manifest-Version: 1.0" + NEWLINE
                                    + "Class-Path: " + NEWLINE
                                    + "Dependencies: org.postgresql,com.mysql,org.slf4j" + NEWLINE;
                ear.setManifest(new StringAsset(ManifestMF));
               
                LOGGER.infof("%s%s%s%s%s%s", NEWLINE, ear.toString(true), NEWLINE, NEWLINE,
                       ejbJar.toString(true), NEWLINE);
               
                final File arquillianDir = new File("target/arquillian");
                arquillianDir.mkdir();
                final File earFile = new File("target/arquillian/" + TEST_EAR);
                ear.as(ZipExporter.class).exportTo(earFile, true);
                LOGGER.infof("target/arquillian/%s wurde angelegt", TEST_EAR);
               
                return ear;

              • 5. Re: JBoss 7: remote testing of an EAR
                Aslak Knutsen Master

                Why do you need application.xml for Jboss6? initialize-in-order ?

                 

                The reason is, test.war comes from the ServletProtocol, with AS7 your default not using that protocol, your using a jmx based one that is communicating with a deployed Service running inside AS.

                 

                (currently AS7 does not support the ServletProtocol fully either, which is coming in Final)

                • 7. Re: JBoss 7: remote testing of an EAR
                  sarah Aldhen Newbie

                  Hello,

                   

                  I'm facing the same probleme. I cannot deploy my ear in embedded glassfish. here is my code of deployment.

                   

                  @Deployment

                      public static EnterpriseArchive createDeployment() {

                   

                   

                   

                          JavaArchive common = ShrinkWrap.create(JavaArchive.class, "arquillian-common.jar")

                                  .addClasses(

                                          Account.class,

                                         Credential.class

                                  ) ;

                   

                          JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "arquillian-ejb.jar")

                                  .addClasses(

                                          TestEJBBean.class,

                                          UserManagerBean.class,

                                                    )

                                  .addAsResource("test-persistence.xml", "META-INF/persistence.xml")

                                  .addAsManifestResource("WEB-INF/sun-web.xml")

                                  .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");    

                   

                   

                          EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "arquillian-tests.ear")            

                                  .addAsModule(ejb)

                                  .addAsDirectory("lib")

                                  .addAsLibrary(common);          

                   

                   

                   

                   

                          System.out.println(ear.toString(true));

                          return ear;

                   

                   

                      }

                   

                  And here is the exception that i get:

                  SEVERE: Exception while loading the app

                  juil. 26, 2013 1:26:49 PM org.eclipse.persistence.session.file:/var/folders/rt/_0twycbj41d_t5wm5vwk1nlh0000gr/T/gfembed4281490647004624932tmp/applications/arquillian-tests/arquillian-ejb_jar/_PU

                  INFO: file:/var/folders/rt/_0twycbj41d_t5wm5vwk1nlh0000gr/T/gfembed4281490647004624932tmp/applications/arquillian-tests/arquillian-ejb_jar/_PU logout successful

                  juil. 26, 2013 1:26:49 PM org.glassfish.deployment.admin.DeployCommand execute

                  SEVERE: Exception while loading the app : WELD-001417 Enabled interceptor class <class>com.ent.server.DocumentLoggerInterceptor</class> in file:/Users/user/Developer/project/project/server/server-ejb/target/classes/META-INF/beans.xml@6 is neither annotated @Interceptor nor registered through a portable extension

                  org.jboss.weld.exceptions.DeploymentException: WELD-001417 Enabled interceptor class <class>com.ent.server.DocumentLoggerInterceptor</class> in file:/Users/user/Developer/project/project/server/server-ejb/target/classes/META-INF/beans.xml@6 is neither annotated @Interceptor nor registered through a portable extension

                            at org.jboss.weld.bootstrap.Validator.validateEnabledInterceptorClasses(Validator.java:448)

                            at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:332)

                            at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)

                            at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:199)

                            at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)

                            at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:313)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)

                            at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)

                            at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)

                            at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)

                            at org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer.deploy(GlassFishContainer.java:227)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                            at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

                            at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                            at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                            at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

                            at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)

                            at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                            at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                            at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                            at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                            at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                            at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

                            at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)

                            at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)

                            at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:601)

                            at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

                   

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

                            at org.jboss.arquillian.protocol.servlet.ServletURIHandler.locateTestServlet(ServletURIHandler.java:60)

                            at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:84)

                            at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:120)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                            at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:57)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)

                            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                            at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                            at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                            at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

                            at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)

                            at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)

                            at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                            at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                            at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

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

                            at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                            at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                            at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                            at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                            at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                            at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

                            at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)

                            at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)

                            at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

                   

                  Could you please help me ??


                  • 8. Re: JBoss 7: remote testing of an EAR
                    Aslak Knutsen Master

                    this seems to be the root cause:

                     

                    : Exception while loading the app : WELD-001417 Enabled interceptor class <class>com.ent.server.DocumentLoggerInterceptor</class> in file:/Users/user/Developer/project/project/server/server-ejb/target/classes/META-INF/beans.xml@6 is neither annotated @Interceptor nor registered through a portable extension


                    Can't tell you much more then that without seeing the code..