1 2 Previous Next 15 Replies Latest reply on Aug 21, 2014 11:15 AM by dmatej

    GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found

    hezjing

      Hi

       

      I'm using Arquillian 1.0.0.CR5 and arquillian-glassfish-embedded-3.1 1.0.0.CR1 to test the JPA.

       

      Here is my test class, at the moment the test method is always success:

       

      @RunWith(Arquillian.class)

      public class UserEjbTest {

       

          @EJB

          private UserEjb userEjb;

       

          @Deployment

          public static JavaArchive createArchive() {

              JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar");

              archive.addClasses(User.class, UserEjb.class);

              archive.addAsManifestResource("test-persistence.xml", ArchivePaths.create("persistence.xml"));

              return archive;

          }

       

          @Test

          public void testCreateUser() {

              Assert.assertTrue(true);

          }

      }

       

       

      When run, the test is failed with the following 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:68)

      at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:58)

      at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:32)

      at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:136)

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

      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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

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

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

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

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

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

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

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

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

      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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

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

      at org.jboss.arquillian.test.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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

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

      at org.jboss.arquillian.test.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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

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

      at org.jboss.arquillian.test.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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

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

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

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

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

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

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

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

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

      at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)

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

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

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

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

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

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

      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

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

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

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

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

       

       

      Do you have any idea of what could be the problem?

        • 1. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
          vineet.reynolds

          If you can switch to the latest snapshots, you could give org.jboss.arquillian.container:arquillian-glassfish-embedded-3.1:1.0.0.Final-SNAPSHOT a try. Take a look at the IntegrationJarTestCase, which is similar to your example (except for the use of JPA), and works in the snapshot.

           

          If you find that your testcase fails despite changing to 1.0.0.Final-SNAPSHOT, or if you do not want to switch to it immediately, could you please update the forum post with a testcase? I think some of the values in arquillian.xml for the embedded container configuration are invalid, but I cannot be sure.

          • 2. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
            ronaldoof

            Hi Vineet,

             

            I am also having the IllegalArgumentException: ArquillianServletRunner not found. I am using gfembedded 1.0.0.Final-SNAPSHOT, this is my deployment:

             

            @Deployment

                      public static EnterpriseArchive createTestArchive() {

             

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

                                                    .addPackage(Pessoa.class.getPackage())

                                                    .addClass(IBaseBO.class)

                                                    .addClass(BaseBO.class)

                                                    .addClass(BaseDAO.class)

                                                    .addClass(IBaseDAO.class)

                                                    .addAsManifestResource("test-persistence.xml",

                                                                        ArchivePaths.create("persistence.xml"))

                                                    .addAsManifestResource("log4j.xml", ArchivePaths.create("log4j.xml"));

             

                                WebArchive war = ShrinkWrap

                                                    .create(WebArchive.class, "siriema-web.war")

                                                    .addClass(IBaseMB.class)

                                                    .addClass(BaseMB.class)

                                                    .addClass(PessoaMB.class)

                                                    .addClass(FacesUtil.class)

                                                    .addClass(UploadUtil.class)

                                                    .addClass(UploadMB.class)

                                                    .setWebXML(new File("src/test/resources/web.xml"))

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

             

             

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

                                                    .setApplicationXML(new File("src/test/resources/application.xml"))

                                        .addAsModule(war).addAsModule(jar);

                                return ear;

             

                      }

            This are my dependencies:



            <dependency>



            <groupId>org.jboss.arquillian</groupId>



            <artifactId>arquillian-bom</artifactId>



            <version>1.0.0.CR7</version>



            <type>pom</type>


            </dependency>


            <dependency>



            <groupId>javax</groupId>



            <artifactId>javaee-endorsed-api</artifactId>



            <scope>test</scope>


            </dependency>


            <dependency>



            <groupId>org.jboss.arquillian.junit</groupId>



            <artifactId>arquillian-junit-container</artifactId>


            </dependency>


            <dependency>



            <groupId>junit</groupId>



            <artifactId>junit</artifactId>


            </dependency>


            <dependency>



            <groupId>org.jboss.arquillian.container</groupId>



            <artifactId>arquillian-glassfish-embedded-3.1</artifactId>


            </dependency>


            <dependency>



            <groupId>org.glassfish.extras</groupId>



            <artifactId>glassfish-embedded-all</artifactId>


            </dependency>


            <dependency>



            <groupId>com.microsoft.sqlserver.jdbc</groupId>



            <artifactId>sqljdbc</artifactId>



            <scope>test</scope>


            </dependency>

             

            My Application.xml is as fallows:

            <?xml version="1.0" encoding="UTF-8"?>

            <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">

              <display-name>siriema-ear</display-name>

              <module>

                <web>

                  <web-uri>siriema-web.war</web-uri>

                  <context-root>test.war</context-root>

                </web>

              </module>

              <module>

                <ejb>siriema-ejb.jar</ejb>

              </module>

              <library-directory>lib</library-directory>

            </application>

             

            My Arquillian.xml is:

            <?xml version="1.0" encoding="UTF-8"?>

            <arquillian xmlns="http://www.jboss.org/arquillian-1.0"

                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                      xsi:schemaLocation="

                  http://www.jboss.org/arquillian-1.0

                  http://www.jboss.org/schema/arquillian/arquillian-1.0.xsd">

             

             

                      <!-- Uncomment to have test archives exported to the file system for inspection -->

                      <engine>

                                <property name="deploymentExportPath">target/gfembedded</property>

                      </engine>

                      <container qualifier="glassfish" default="true">

                                <configuration>

                                          <property name="sunResourcesXml">src/test/resources/glassfish-resources.xml</property>

                                </configuration>

                      </container>

            </arquillian>

             

            Can you help me? I am really stuck with this...

             

            Thanks a lot.

            • 3. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
              vineet.reynolds

              I think this line in your application.xml needs to be changed:

               

              <context-root>test.war</context-root>

               

               

              Perhaps it should be

               

              <context-root>test</context-root>

               

              or

               

              <context-root>/test</context-root> instead.

              • 4. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                ronaldoof

                I've already tested it,but no luck. I went back to just use the War on the Deployment, it works now. But it really bugs me that the EAR doesn't work when you have a war module. But thanks a lot for the reply.

                • 5. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                  vineet.reynolds

                  Ok, having just debugged this container, I'd like to know if you managed to find any indicator that the deployment was successful?

                   

                  When using the embedded GlassFish container, the "ArquillianServletRunner not found. ..." message is usually issued when the deployment has failed. In such an event. the logs usually help - embedded GlassFish writes to the console in general, unless you've used a LogHandler. I'll take a look at your deployment logic, and see if I can reproduce this behavior without your classes while retaining the basic structure.

                  • 6. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                    ronaldoof

                    HI.

                     

                    I am sorry about the delay, it was easter hollidays in Brazil. About the successful deployment the logs in glassfish tells me it really happend, no exception, and it cleary show EAR app deployed successfully. Would it help to see my startup logs?

                    • 7. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                      vineet.reynolds

                      Oh yes, the logs would help. It would help if they contain a message about the application's web context being registered.

                      • 8. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                        ronaldoof

                        Vineet, here is my log:

                         

                        09/04/2012 08:54:16 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
                        INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
                        09/04/2012 08:54:16 org.hibernate.validator.util.Version INFO: Hibernate Validator null
                        09/04/2012 08:54:16 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
                        INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                        09/04/2012 08:54:17 com.sun.enterprise.v3.services.impl.GrizzlyProxy start
                        INFO: Grizzly Framework no.version started in: 37ms - bound to [/0.0.0.0:8.080]
                        09/04/2012 08:54:17 com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy
                        INFO: Network listener https-listener on port 0 disabled per domain.xml
                        09/04/2012 08:54:17 com.sun.enterprise.v3.server.AppServerStartup run
                        INFO: GlassFish Server Open Source Edition 3.2-b06 (java_re-private) startup time : Embedded (911ms), startup services(505ms), total(1.416ms)
                        09/04/2012 08:54:17 org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
                        INFO: JMX006: JMXStartupService had disabled JMXConnector system
                        09/04/2012 08:54:18 org.jboss.arquillian.container.glassfish.embedded_3_1.GlassFishContainer executeCommand
                        INFO: command add-resources result: PlainTextActionReporterSUCCESSDescription: add-resources AdminCommandnull
                            JDBC connection pool siriemaPool created successfully.
                            Custom Resource app/data/uploads created.
                            Custom Resource app/data/uploadURLPath created.
                            JDBC resource jdbc/siriema created successfully.
                        
                        09/04/2012 08:54:27 com.sun.enterprise.security.SecurityLifecycle INFO: SEC1002: Security Manager is OFF.
                        09/04/2012 08:54:27 com.sun.enterprise.security.SecurityLifecycle onInitialization
                        INFO: SEC1010: Entering Security Startup Service
                        09/04/2012 08:54:27 com.sun.enterprise.security.PolicyLoader loadPolicy
                        INFO: SEC1143: Loading policy provider com.sun.enterprise.security.jacc.provider.SimplePolicyProvider.
                        09/04/2012 08:54:27 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.
                        09/04/2012 08:54:27 com.sun.enterprise.security.auth.realm.Realm doInstantiate
                        INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
                        09/04/2012 08:54:27 com.sun.enterprise.security.auth.realm.Realm doInstantiate
                        INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
                        09/04/2012 08:54:27 com.sun.enterprise.security.SecurityLifecycle onInitialization
                        INFO: SEC1011: Security Service(s) Started Successfully
                        09/04/2012 08:54:28 com.sun.enterprise.web.WebContainer createHttpListener
                        INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
                        09/04/2012 08:54:28 com.sun.enterprise.web.WebContainer createHosts
                        INFO: WEB0171: Created virtual server [server]
                        09/04/2012 08:54:28 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
                        INFO: WEB0172: Virtual server [server] loaded default web module []
                        classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
                        SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@6321d94c
                        09/04/2012 08:54:28 org.jboss.weld.bootstrap.WeldBootstrap INFO: WELD-000900 SNAPSHOT
                        09/04/2012 08:54:28 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
                        INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                        09/04/2012 08:54:30 com.sun.faces.config.ConfigureListener contextInitialized
                        INFO: Inicializando Mojarra 2.1.1 (SNAPSHOT 20110404) para o contexto '/siriema'
                        09/04/2012 08:54:31 org.primefaces.webapp.PostConstructApplicationEventListener processEvent
                        INFO: Running on PrimeFaces 3.2
                        09/04/2012 08:54:31 com.sun.enterprise.web.WebApplication start
                        INFO: WEB0671: Loading application [siriema-ear#siriema-web.war] at [/siriema]
                        09/04/2012 08:54:32 com.sun.enterprise.web.WebContainer createHttpListener
                        INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
                        09/04/2012 08:54:32 com.sun.enterprise.web.WebContainer createHttpListener
                        INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
                        09/04/2012 08:54:32 com.sun.enterprise.web.WebContainer createHttpListener
                        INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
                        09/04/2012 08:54:32 org.glassfish.deployment.admin.DeployCommand execute
                        INFO: siriema-ear was successfully deployed in 7.210 milliseconds.
                        PlainTextActionReporterSUCCESSDescription: deploy AdminCommandApplication deployed with name siriema-ear.
                            [name=siriema-ear
                        classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
                        SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@6321d94c
                        PlainTextActionReporterSUCCESSNo monitoring data to report.
                        09/04/2012 08:54:32 org.glassfish.admin.mbeanserver.JMXStartupService shutdown
                        INFO: JMX001: JMXStartupService and JMXConnectors have been shut down.
                        09/04/2012 08:54:32 com.sun.enterprise.v3.server.AppServerStartup stop
                        INFO: Shutdown procedure finished
                        09/04/2012 08:54:32 AppServerStartup run
                        INFO: [Thread[GlassFish Kernel Main Thread,5,main]] exiting
                        

                        As you may see there is no error on the log, but the test still issues an "ArquillianServletRunner not found.", I debbuged arquillian, and I saw that it kind of fails to retrieve the right URL of the ArquillianServletRunner. I checked out, accessing the gfembedded from a browser that, the servlet is deployed, and when I use a simple WAR the problem does not happens, it´s like arquillian can´t find the webapp context when it is inside an EAR file. Can I do anything else to help?

                        • 9. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                          vineet.reynolds

                          The last bit of info that you've provided is useful. I'll take a look at this when I have time. Also, the logs contain some curious messages - the application.xml you have shown in a previous post contains a context root, that is not being used by the deployment on embedded GlassFish.

                          • 10. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                            ronaldoof

                            Sorry Vineet, that was my bad, I've changed the context root on the app.xml, to /siriema, cause it´s the name of our app. If there´s anything else I can do, please let me know.

                            • 11. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                              sarah333

                              Hello,

                               

                              I have the same problem. How did you resolve it ?

                               

                               

                              @Deployment

                                  public static EnterpriseArchive createTestArchive() {

                               

                               

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

                                              .addClasses(

                                                      Account.class,

                                                      Credential.class

                                              );

                               

                               

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

                               

                               

                                              .addClasses(

                                                      TestEJBBean.class,                     

                                                      UserrBean.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")

                                                                       .setApplicationXML(new File("arquillian-tests/src/test/resources/application.xml"))

                                                                       .addAsModule(ejb)

                                                                       .addAsModule(common);

                               

                                      return ear;

                                  }

                               

                              my application.xml :

                               

                              <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">

                                  <display-name>arquillian-tests-ear</display-name>

                                  <module>

                                      <ejb>docdoku-arquillian-tests.jar</ejb>

                                  </module>

                                  <module>

                                      <ejb>docdoku-arquillian-common.jar</ejb>

                                  </module>

                                  <library-directory>lib</library-directory>

                              </application>

                               

                               

                              Arquillian.xml

                               

                              <arquillian xmlns="http://jboss.org/schema/arquillian"

                                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                                          xsi:schemaLocation="

                                      http://jboss.org/schema/arquillian

                                      http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

                               

                               

                                  <container qualifier="glassfish-embedded" default="true">

                                      <configuration>

                                          <property name="configurationXml">arquillian-tests/src/test/resources-glassfish-embedded/domain.xml</property>

                               

                               

                                          <property name="resourcesXml">

                                             arquillian-tests/src/test/resources-glassfish-embedded/glassfish-resources.xml

                                          </property>

                               

                               

                                      </configuration>

                               

                               

                                  </container>

                               

                               

                              </arquillian>

                              • 12. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                                ronaldoof

                                I never solved it... I still test my modules separately. Unfortanely I didn't had much time to pursue this issue, sorry I couldn't be of more help.

                                • 13. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                                  aslam.rajper

                                  I am also facing the same issue , Kindly provide assistance to solve this issue.

                                   

                                   

                                  Thanks

                                  • 14. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
                                    bmajsak

                                    I would simply get rid of glassfish and try some other fast container (like wildfly or tomee)

                                    1 2 Previous Next