1 2 Previous Next 19 Replies Latest reply on Oct 16, 2011 8:13 AM by badr

    Arquillian and JSFUnit Tests in one Maven-project?

    mokelet

      Hi,

       

      I tested the gettingstarted example. After I added the Jboss Deprecated Repository, maven downloaded all dependencies and the test is running.

       

      Now I add a simple arquillian test and I get an error.

       

      Here is the test:

      import static org.junit.Assert.assertNotNull;
      
      import org.jboss.arquillian.container.test.api.Deployment;
      import org.jboss.arquillian.junit.Arquillian;
      import org.jboss.shrinkwrap.api.Archive;
      import org.jboss.shrinkwrap.api.ShrinkWrap;
      import org.jboss.shrinkwrap.api.spec.JavaArchive;
      import org.junit.Test;
      import org.junit.runner.RunWith;
      
      
      @RunWith(Arquillian.class)
      public class SimpleTest {
        
                @Deployment
                public static Archive<?> createTestArchive() {
                          return ShrinkWrap.create(JavaArchive.class, "test.jar");
                }
        
                @Test
                public void configurableInjection() {
                          assertNotNull(new String(""));
                }
      }
      

       

      Message on the console:

       

      Running org.jboss.jsfunit.example.hellojsf.SimpleTest
      java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/test/ArquillianServletRunner?outputMode=
      erializedObject&className=org.jboss.jsfunit.example.hellojsf.SimpleTest&methodName=configurableInjection&cmd=event. Got
      500 (Internal Server Error)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:233)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.access$000(ServletMethodExecutor.java:41)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor$1.run(ServletMethodExecutor.java:95)
              at java.util.TimerThread.mainLoop(Timer.java:512)
              at java.util.TimerThread.run(Timer.java:462)
      java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/test/ArquillianServletRunner?outputMode=
      erializedObject&className=org.jboss.jsfunit.example.hellojsf.SimpleTest&methodName=configurableInjection&cmd=event. Got
      500 (Internal Server Error)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:233)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.access$000(ServletMethodExecutor.java:41)
              at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor$1.run(ServletMethodExecutor.java:95)
              at java.util.TimerThread.mainLoop(Timer.java:512)
              at java.util.TimerThread.run(Timer.java:462)
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 52.64 sec <<< FAILURE!
      
      

       

      And the Server-Log

       

      13:19:32,077 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[ArquillianServletRunner]] Servlet.service() for servlet ArquillianServletRunner threw exception: java.lang.NoClassDefFoundError: org/jboss/jsfunit/context/JSFUnitFacesContext
                at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:101) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.jsfunit.arquillian.container.JSFUnitCleanupTestTreadFilter.doFilter(JSFUnitCleanupTestTreadFilter.java:51) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      
      
      13:19:32,075 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[ArquillianServletRunner]] Servlet.service() for servlet ArquillianServletRunner threw exception: java.lang.ClassNotFoundException: javax.faces.context.FacesContext
                at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_25]
                at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_25]
                at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_25]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [:1.6.0_25]
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [:1.6.0_25]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_25]
                at java.lang.Class.forName0(Native Method) [:1.6.0_25]
                at java.lang.Class.forName(Class.java:247) [:1.6.0_25]
                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:284) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_25]
                at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_25]
                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_25]
                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_25]
                at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]
                at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_25]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_25]
                at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:101) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.jsfunit.arquillian.container.JSFUnitCleanupTestTreadFilter.doFilter(JSFUnitCleanupTestTreadFilter.java:51) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      
      
      13:19:32,431 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[ArquillianServletRunner]] Servlet.service() for servlet ArquillianServletRunner threw exception: java.lang.NoClassDefFoundError: org/jboss/jsfunit/context/JSFUnitFacesContext
                at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:101) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.jsfunit.arquillian.container.JSFUnitCleanupTestTreadFilter.doFilter(JSFUnitCleanupTestTreadFilter.java:51) [:]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      
      

       

      Can I combine the two kinds of tests?

      Has someone an idea?

       

      Big thanks!

        • 1. Re: Arquillian and JSFUnit Tests in one Maven-project?
          badr

          i think you should add your application ressource to the createTestArchive() methde

          • 2. Re: Arquillian and JSFUnit Tests in one Maven-project?
            mokelet

            Hi badr,

             

            can you give me an example? I have find a few addAsLibraries and addPackages examples, but none works.

             

            thx

            • 3. Re: Arquillian and JSFUnit Tests in one Maven-project?
              badr

              Hi Niko,

               

              In the log you have ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[ArquillianServletRunner]] Servlet.service() for servlet ...

               

              I guess you should have a web.xml with servelet configuration, in your case i don't see the test you want to do because you try to test a jar file with JSFUnit?!!! or what exactely

               

              if you want to test a JSF managed bean you should at least add the following :

               

              .setWebXML(new File("src/main/webapp/WEB-INF/web.xml"))

                          .addPackage(Package.getPackage("your test package"))

                          .addAsWebResource(new File("src/main/webapp", "index.xhtml"))

                          .addAsWebInfResource(new File("src/main/webapp/WEB-INF/faces-config.xml"), "faces-config.xml")

              • 4. Re: Arquillian and JSFUnit Tests in one Maven-project?
                badr

                In addittion i think a JavaArchive does not supported nested JavaArchives, so you need to return a JavaArchive 'container', e.g. EnterpriseArchive or WebArchive

                 

                Hope it helps

                • 5. Re: Arquillian and JSFUnit Tests in one Maven-project?
                  mokelet

                  Hi,

                   

                  the second test is an ordinary arquillian-test without jsfunit.

                  In a bigger project I can have some arquillian and some jsfunit tests and I want to execute them, but I get the error message above. I found out that the problem comes from the three jsfunit dependencies. If I remove them, the arquilliantest works fine but logically not the jsfunit test.

                   

                  I hope that explain my problem.

                  THX

                  • 6. Re: Arquillian and JSFUnit Tests in one Maven-project?
                    badr

                    Can you send us the result of the  tree goal execution with maven-dependency-plugin on your project

                    • 7. Re: Arquillian and JSFUnit Tests in one Maven-project?
                      mokelet
                      [INFO] +- org.hibernate:hibernate-validator:jar:4.1.0.Final:provided
                      [INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:provided
                      [INFO] +- org.hibernate:hibernate-core:jar:3.6.0.Final:provided (scope not updated to compile)
                      [INFO] |  +- antlr:antlr:jar:2.7.6:provided
                      [INFO] |  +- commons-collections:commons-collections:jar:3.1:provided
                      [INFO] |  +- dom4j:dom4j:jar:1.6.1:provided
                      [INFO] |  +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:provided
                      [INFO] |  \- javax.transaction:jta:jar:1.1:provided
                      [INFO] +- org.hibernate:hibernate-annotations:jar:3.5.6-Final:provided
                      [INFO] +- org.hibernate:hibernate-entitymanager:jar:3.6.0.Final:provided
                      [INFO] |  +- cglib:cglib:jar:2.2:provided
                      [INFO] |  \- javassist:javassist:jar:3.12.0.GA:provided
                      [INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided
                      [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:provided (scope not updated to compile)
                      [INFO] +- junit:junit:jar:4.8.2:test
                      [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.0.0.CR5:test
                      [INFO] |  |  \- org.jboss.arquillian.core:arquillian-core-api:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.0.0.CR5:test
                      [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-beta-5:test
                      [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-beta-5:test
                      [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.0.0.CR5:test
                      [INFO] +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.0.0.CR5:test
                      [INFO] |  +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.0.0.CR5:test
                      [INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:1.1.0-beta-1:test
                      [INFO] |  +- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-beta-5:test
                      [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api:jar:1.1.0-beta-1:test
                      [INFO] +- org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.0.Final:provided
                      [INFO] +- xalan:serializer:jar:2.7.1:test
                      [INFO] |  \- xml-apis:xml-apis:jar:1.3.04:test
                      [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:1.0.0-beta-5:test
                      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:1.0.0-beta-5:test
                      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:1.0.0-beta-5:test
                      [INFO] |  +- org.sonatype.aether:aether-api:jar:1.8:test
                      [INFO] |  +- org.sonatype.aether:aether-util:jar:1.8:test
                      [INFO] |  +- org.sonatype.aether:aether-connector-wagon:jar:1.8:test
                      [INFO] |  |  +- org.sonatype.aether:aether-spi:jar:1.8:test
                      [INFO] |  |  \- org.codehaus.plexus:plexus-container-default:jar:1.5.5:test
                      [INFO] |  |     +- org.codehaus.plexus:plexus-classworlds:jar:2.2.2:test
                      [INFO] |  |     +- org.apache.xbean:xbean-reflect:jar:3.4:test
                      [INFO] |  |     |  \- commons-logging:commons-logging-api:jar:1.1:test
                      [INFO] |  |     \- com.google.collections:google-collections:jar:1.0:test
                      [INFO] |  +- org.apache.maven:maven-aether-provider:jar:3.0.1:test
                      [INFO] |  |  +- org.apache.maven:maven-model:jar:3.0.1:test
                      [INFO] |  |  +- org.apache.maven:maven-model-builder:jar:3.0.1:test
                      [INFO] |  |  +- org.apache.maven:maven-repository-metadata:jar:3.0.1:test
                      [INFO] |  |  +- org.sonatype.aether:aether-impl:jar:1.8:test
                      [INFO] |  |  +- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
                      [INFO] |  |  \- org.codehaus.plexus:plexus-utils:jar:2.0.4:test
                      [INFO] |  +- org.apache.maven:maven-settings-builder:jar:3.0.1:test
                      [INFO] |  |  +- org.codehaus.plexus:plexus-interpolation:jar:1.14:test
                      [INFO] |  |  +- org.apache.maven:maven-settings:jar:3.0.1:test
                      [INFO] |  |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test
                      [INFO] |  |     \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
                      [INFO] |  +- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-7:test
                      [INFO] |  +- org.apache.maven.wagon:wagon-file:jar:1.0-beta-7:test
                      [INFO] |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-7:test
                      [INFO] |     \- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-7:test
                      [INFO] +- org.jboss.arquillian.container:arquillian-jbossas-remote-6:jar:1.0.0.CR2:test
                      [INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.0.0.CR5:test (version managed from 1.0.0.CR4)
                      [INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.0.0.CR5:test (version managed from 1.0.0.CR4)
                      [INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.0.0.CR5:test (version managed from 1.0.0.CR4)
                      [INFO] |  \- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.0.0.CR5:test (version managed from 1.0.0.CR4)
                      [INFO] +- org.jboss.jbossas:jboss-as-profileservice-client:pom:6.1.0.Final:test
                      [INFO] |  +- org.jboss.logging:jboss-logging:jar:3.0.0.GA:test
                      [INFO] |  +- org.jboss:jboss-common-core:jar:2.2.17.GA:test
                      [INFO] |  +- org.jboss.profileservice:jboss-profileservice-spi:jar:0.2.2:test
                      [INFO] |  +- org.jboss.man:jboss-managed:jar:2.1.1.SP2:test
                      [INFO] |  +- org.jboss.man:jboss-metatype:jar:2.1.1.SP2:test
                      [INFO] |  +- org.jboss:jboss-reflect:jar:2.2.1.SP1:test
                      [INFO] |  +- org.jboss:jboss-mdr:jar:2.2.0.SP1:test
                      [INFO] |  +- org.jboss.naming:jnp-client:jar:5.0.5.Final:test
                      [INFO] |  +- org.jboss.classpool:jboss-classpool:jar:1.0.0.GA:test
                      [INFO] |  +- org.jboss.classpool:jboss-classpool-scoped:jar:1.0.0.GA:test
                      [INFO] |  +- oswego-concurrent:concurrent:jar:1.3.4-jboss-update1:test
                      [INFO] |  +- jboss:jboss-serialization:jar:1.0.3.GA:test
                      [INFO] |  +- org.jboss.remoting:jboss-remoting:jar:2.5.4.SP2:test
                      [INFO] |  +- trove:trove:jar:1.0.2:test
                      [INFO] |  +- org.picketbox:jboss-security-spi:jar:3.0.0.CR2:test
                      [INFO] |  +- org.picketbox:jbosssx-client:jar:3.0.0.CR2:test
                      [INFO] |  +- org.jboss.aop:jboss-aop:jar:2.2.2.GA:test
                      [INFO] |  +- org.jboss.aspects:jboss-remoting-aspects:jar:1.0.1.GA:test
                      [INFO] |  +- org.jboss.aspects:jboss-security-aspects:jar:1.0.1:test
                      [INFO] |  +- org.jboss.jbossas:jboss-as-profileservice:jar:client:6.1.0.Final:test
                      [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:test
                      [INFO] |  \- org.jboss.jbossas:jboss-as-server:jar:6.1.0.Final:test
                      [INFO] |     \- org.jboss.managed.beans:managed-beans-metadata:jar:1.0.0-alpha-6:test
                      [INFO] |        \- org.jboss.interceptor:jboss-interceptor-spi:jar:2.0.0.Alpha1:test
                      [INFO] +- org.mockito:mockito-all:jar:1.8.5:test
                      [INFO] +- org.jboss.arquillian.extension:arquillian-jacoco:jar:1.0.0.Alpha1:test
                      [INFO] +- org.jacoco:org.jacoco.core:jar:0.5.3.201107060350:test
                      [INFO] |  +- asm:asm:jar:3.2:test
                      [INFO] |  \- asm:asm-commons:jar:3.2:test
                      [INFO] |     \- asm:asm-tree:jar:3.2:test
                      [INFO] +- org.apache.tomcat:servlet-api:jar:6.0.32:provided
                      [INFO] +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
                      [INFO] +- commons-configuration:commons-configuration:jar:1.5:compile
                      [INFO] +- commons-digester:commons-digester:jar:2.0:compile
                      [INFO] +- org.apache.commons:commons-email:jar:1.1:compile
                      [INFO] +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
                      [INFO] +- commons-io:commons-io:jar:2.0.1:compile
                      [INFO] +- commons-lang:commons-lang:jar:2.5:compile
                      [INFO] +- org.freemarker:freemarker:jar:2.3.16:compile
                      [INFO] +- org.hibernate:hibernate-search:jar:3.3.0.Final:compile
                      [INFO] +- jboss:jboss-cache:jar:1.4.1.SP9:compile
                      [INFO] +- log4j:log4j:jar:1.2.16:compile
                      [INFO] +- org.apache.lucene:lucene-analyzers:jar:3.0.0:compile
                      [INFO] +- org.apache.lucene:lucene-core:jar:3.0.3:compile
                      [INFO] +- org.primefaces:primefaces:jar:2.2.1:compile
                      [INFO] +- org.primefaces.themes:ui-lightness:jar:1.0.1:compile
                      [INFO] +- com.thoughtworks.xstream:xstream:jar:1.3.1:compile
                      [INFO] +- org.jboss.spec:jboss-javaee-6.0:pom:2.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.1.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.el:jboss-el-api_2.2_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.faces:jboss-jsf-api_2.0_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.enterprise.deploy:jboss-jad-api_1.2_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.xml.registry:jboss-jaxr-api_1.0_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec:jar:1.0.1.Final:provided
                      [INFO] |  |  \- org.apache.xalan:xalan:jar:2.7.1-1.jbossorg:provided
                      [INFO] |  +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:jar:1.0.2.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec:jar:1.0.0.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.xml.soap:jboss-saaj-api_1.3_spec:jar:1.0.1.Final:provided
                      [INFO] |  +- org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec:jar:2.0.0.Final:provided
                      [INFO] |  +- javax.activation:activation:jar:1.1:provided
                      [INFO] |  +- javax.enterprise:cdi-api:jar:1.0-SP4:provided
                      [INFO] |  +- javax.inject:javax.inject:jar:1:provided
                      [INFO] |  +- javax.jws:jsr181-api:jar:1.0-MR1:provided
                      [INFO] |  \- javax.mail:mail:jar:1.4.4:provided
                      [INFO] +- org.jboss.jsfunit:jsfunit-arquillian:jar:2.0.0.Beta2:test
                      [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl:jar:1.1.0-beta-1:test (version managed from 1.1.0-alpha-2)
                      [INFO] +- org.jboss.jsfunit:jboss-jsfunit-core:jar:2.0.0.Beta2:test
                      [INFO] |  +- net.sourceforge.htmlunit:htmlunit:jar:2.8:test
                      [INFO] |  |  +- commons-codec:commons-codec:jar:1.4:test
                      [INFO] |  |  +- xerces:xercesImpl:jar:2.9.1:test
                      [INFO] |  |  \- commons-logging:commons-logging:jar:1.1.1:test
                      [INFO] |  +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.8:test
                      [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:test
                      [INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:test
                      [INFO] |  +- org.apache.httpcomponents:httpmime:jar:4.0.1:test
                      [INFO] |  +- org.apache.james:apache-mime4j:jar:0.6:test
                      [INFO] |  +- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
                      [INFO] |  |  \- org.w3c.css:sac:jar:1.3:test
                      [INFO] |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.14:test
                      [INFO] |  \- xalan:xalan:jar:2.7.1:test
                      [INFO] \- org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec:jar:2.0.0.Beta1:provided
                      
                      
                      • 8. Re: Arquillian and JSFUnit Tests in one Maven-project?
                        mokelet

                        Has nobody else this problem?

                        • 9. Re: Arquillian and JSFUnit Tests in one Maven-project?
                          badr

                          Hi,

                           

                          The dependencies tree looks fine ! may be it's related to your application configuration!

                           

                          can you provide us the surfire report

                          • 10. Re: Arquillian and JSFUnit Tests in one Maven-project?
                            mokelet
                            -------------------------------------------------------------------------------
                            Test set: path.to.testclass.SearchServiceTest
                            -------------------------------------------------------------------------------
                            Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 535.355 sec <<< FAILURE!
                            configurableInjection(path.to.testclass.SearchServiceTest)  Time elapsed: 3.951 sec  <<< ERROR!
                            java.lang.IllegalStateException: Error launching test path.to.testclass.SearchServiceTest public void path.to.testclass.SearchServiceTest.configurableInjection()
                                      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:122)
                                      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: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:53)
                                      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
                                      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
                                      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)
                            Caused by: java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=path.to.testclass.ServiceTest&methodName=configurableInjection. Got 500 (Internal Server Error)
                                      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:233)
                                      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:140)
                                      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:118)
                                      ... 81 more
                            
                            

                             

                            Thats it.

                            Thanks for helping me.

                            • 11. Re: Arquillian and JSFUnit Tests in one Maven-project?
                              badr

                              hummm!

                               

                              have you put <defaultProtocol type="Servlet 3.0" /> in your arquillian.xml file (it's mandatory i think for JSFUnit2)

                              • 12. Re: Arquillian and JSFUnit Tests in one Maven-project?
                                mokelet

                                I removed arquillian.xml and the error comes again. No matter if the parameter is set or not. I add a little example which throws the exception by execute the command "mvn clean test".

                                It's the getting started example of JSFUnit. I have added a simple arquillian test.

                                 

                                ty

                                Nico

                                • 13. Re: Arquillian and JSFUnit Tests in one Maven-project?
                                  badr

                                  I've tested the example you have attached with jboss as7 and it works fine!!!

                                  • 14. Re: Arquillian and JSFUnit Tests in one Maven-project?
                                    badr

                                    The only change i've done is:

                                     

                                    add arquillian.xml:

                                     

                                     

                                    <?xml version="1.0" encoding="UTF-8"?>
                                    <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">
                                    
                                              <engine> <property name="deploymentExportPath">target/</property> </engine> 
                                              <defaultProtocol type="Servlet 3.0" />
                                    </arquillian>
                                    
                                    

                                     

                                    change:

                                     

                                     

                                    <dependency>
                                           <groupId>org.jboss.arquillian.container</groupId>
                                           <artifactId>arquillian-jbossas-remote-6</artifactId>
                                           <version>${version.arquillian.jboss}</version>
                                          <scope>test</scope>
                                    </dependency>
                                    <dependency>
                                           <groupId>org.jboss.jbossas</groupId>
                                           <artifactId>jboss-as-profileservice-client</artifactId>
                                           <version>${version.jboss_60}</version>
                                           <type>pom</type>
                                    </dependency>
                                    
                                    

                                     

                                    by:

                                     

                                    <dependency>
                                             <groupId>org.jboss.as</groupId>
                                             <artifactId>jboss-as-arquillian-container-remote</artifactId>
                                             <version>7.0.1.Final</version>
                                            <scope>test</scope>
                                    </dependency>
                                    
                                    

                                     

                                     

                                     

                                    i don't have jboss 6 in my host i'll try that later but if you don't have constrainte to switch to jboss as7 you can go a head with ;-)

                                    1 2 Previous Next