1 2 Previous Next 18 Replies Latest reply on Feb 27, 2012 12:29 PM by david meier

    Include external libs?

    david meier Newbie

      Hi,

       

      how can I include external libs?

      In my case I'm using primefaces. One of my method expects a RowEditEvent, which of course isn't found "by default".

       

      How can I make this work?

       

      thnx

       

       

      8:38:00,701 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-8) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class business.Facade
          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:152) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.0.Final.jar:7.1.0.Final]
          at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.0.Final.jar:7.1.0.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_01]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_01]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_01]
      
      Caused by: java.lang.NoClassDefFoundError: org/primefaces/event/RowEditEvent
          at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_01]
          at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) [rt.jar:1.7.0_01]
          at java.lang.Class.getDeclaredMethods(Class.java:1808) [rt.jar:1.7.0_01]
          at org.jboss.weld.util.reflection.SecureReflections$8.work(SecureReflections.java:172) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.util.reflection.SecureReflections$8.work(SecureReflections.java:169) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.util.reflection.SecureReflections.getDeclaredMethods(SecureReflections.java:169) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:233) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
          at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
          at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
          at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
          at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          ... 11 more
      
        • 1. Re: Include external libs?
          Bartosz Majsak Master

          Hi David,

           

          you have at least two options here.

           

          1. The simplest approach (a.k.a. quick and dirty)

          Using Shrinkwrap API you can add package recursively

          {code:java}addPackages(true, "org.primefaces"){code}

           

          This should work for simple JARs but it's more like a quick and dirty approach then recommend way of doing stuff

           

          2. Using Maven Dependency Resolver

          {code}MavenDependencyResolver mvnResolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom(POM_XML);

          archive.addAsLibrary(mvnResolver.artifact("groupId:artifactId:version").resolveAsFiles()); // for WAR and EAR; for JAR please try .addAsResource(File)

          {code}

           

          In order to use it please add this dependency to your pom:

           

          {code:xml}<dependency>

            <groupId>org.jboss.shrinkwrap.resolver</groupId>

            <artifactId>shrinkwrap-resolver-api-maven</artifactId>

            <version>1.0.0-beta-6</version>

          </dependency>


          <dependency>

              <groupId>org.jboss.shrinkwrap.resolver</groupId>

              <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

              <version>1.0.0-beta-6</version>

          </dependency>{code}

          • 2. Re: Include external libs?
            david meier Newbie

            What am I doing wrong?

             

             

               @Deployment
               public static Archive<?> createTestArchive() {
                  MavenDependencyResolver mvnResolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml");
                  return ShrinkWrap.create(WebArchive.class, "test.war")
                        .addClasses(Global.class, Customer.class [...])
                        .addAsLibraries(mvnResolver.artifact("primefaces:org.primefaces:3.2-SNAPSHOT").resolveAsFiles())
                        .addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")
                        .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
               }
            

             

             

            log4j:WARN No appenders could be found for logger (org.jboss.logging).
            log4j:WARN Please initialize the log4j system properly.
            Feb 22, 2012 1:28:40 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
            Warnung: Failed downloading primefaces/org.primefaces/3.2-SNAPSHOT/org.primefaces-3.2-SNAPSHOT.pom from https://repository.jboss.org/nexus/content/groups/public-jboss/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
            Feb 22, 2012 1:28:40 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
            Warnung: Failed downloading primefaces/org.primefaces/3.2-SNAPSHOT/org.primefaces-3.2-SNAPSHOT.pom from http://repo1.maven.org/maven2/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
            Feb 22, 2012 1:28:40 PM org.jboss.shrinkwrap.resolver.impl.maven.LogRepositoryListener artifactDescriptorMissing
            Warnung: Missing artifact descriptor for primefaces:org.primefaces:jar:3.2-SNAPSHOT
            Feb 22, 2012 1:28:41 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
            Warnung: Failed downloading primefaces/org.primefaces/3.2-SNAPSHOT/org.primefaces-3.2-SNAPSHOT.jar from https://repository.jboss.org/nexus/content/groups/public-jboss/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
            Feb 22, 2012 1:28:41 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
            Warnung: Failed downloading primefaces/org.primefaces/3.2-SNAPSHOT/org.primefaces-3.2-SNAPSHOT.jar from http://repo1.maven.org/maven2/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
            

             

             

            ---------

             

            by the way: dirty approach also failes with:

            .addPackages(true, "org.primefaces")

             

             

             

            13:31:30,774 INFO  [org.jboss.as.arquillian] (MSC service thread 1-1) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."test.war",unit=test.war,tests=[src.test.IT.FacadeTest]]
            13:31:30,855 WARN  [org.jboss.modules] (MSC service thread 1-7) Failed to define class org.primefaces.push.PushServlet in Module "deployment.test.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/primefaces/push/PushServlet (Module "deployment.test.war:main" from Service Module Loader)
                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:91)
                at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:484) [hibernate-entitymanager-4.0.0.CR2.jar:4.0.0.CR2]
                at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:846) [hibernate-entitymanager-4.0.0.CR2.jar:4.0.0.CR2]
                at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:591) [hibernate-entitymanager-4.0.0.CR2.jar:4.0.0.CR2]
                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72) [hibernate-entitymanager-4.0.0.CR2.jar:4.0.0.CR2]
                at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
                at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
            Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/WebSocketServlet
                at java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0_01]
                at java.lang.ClassLoader.defineClass(Unknown Source) [:1.7.0_01]
                at java.security.SecureClassLoader.defineClass(Unknown Source) [:1.7.0_01]
                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
                ... 19 more
            Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.WebSocketServlet from [Module "deployment.test.war:main" from Service Module Loader]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
                ... 23 more
            
            13:31:30,857 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.persistenceunit."test.war#primary": org.jboss.msc.service.StartException in service jboss.persistenceunit."test.war#primary": Failed to start service
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
                at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
            Caused by: java.lang.LinkageError: Failed to link org/primefaces/push/PushServlet (Module "deployment.test.war:main" from Service Module Loader)
                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:91)
                at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:484)
                at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:846)
                at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:591)
                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
                at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
                at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
                ... 3 more
            Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/WebSocketServlet
                at java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0_01]
                at java.lang.ClassLoader.defineClass(Unknown Source) [:1.7.0_01]
                at java.security.SecureClassLoader.defineClass(Unknown Source) [:1.7.0_01]
                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
                ... 19 more
            Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.WebSocketServlet from [Module "deployment.test.war:main" from Service Module Loader]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
                ... 23 more
            
            13:31:31,063 INFO  [org.jboss.as.server.controller] (pool-1-thread-1) Deployment of "test.war" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"test.war#primary\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"test.war#primary\": Failed to start service"}}
            13:31:33,240 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment test.war in 2179ms
            13:31:33,254 ERROR [org.jboss.as.controller] (pool-1-thread-1) Operation ("undeploy") failed - address: ([("deployment" => "test.war")]): java.util.NoSuchElementException: No child 'runtime-name' exists
                at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:362) [jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
                at org.jboss.dmr.ModelNode.require(ModelNode.java:703) [jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
                at org.jboss.as.server.deployment.DeploymentUndeployHandler.execute(DeploymentUndeployHandler.java:58)
                at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:83) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:350) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doProcessRequest(ModelControllerClientOperationHandler.java:154) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$100(ModelControllerClientOperationHandler.java:85) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.call(ModelControllerClientOperationHandler.java:114) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.call(ModelControllerClientOperationHandler.java:112) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
                at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [:1.7.0_01]
                at java.util.concurrent.FutureTask.run(Unknown Source) [:1.7.0_01]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
                at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
            
            13:31:33,300 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment arquillian-service in 17ms
            13:31:33,306 INFO  [org.jboss.as.server.controller] (pool-1-thread-1) Undeployed "arquillian-service"
            
            • 3. Re: Include external libs?
              Bartosz Majsak Master

              Doh! It was too late I guess. I missplaced groupId with artifactId

              It should go like this:  groupId:artifactId:version

              Sorry

              • 4. Re: Include external libs?
                david meier Newbie

                Hm seems better, but still getting errors:

                 

                 

                Feb 22, 2012 2:47:57 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
                Warnung: Failed downloading org/primefaces/primefaces/3.2-SNAPSHOT/primefaces-3.2-SNAPSHOT.pom from https://repository.jboss.org/nexus/content/groups/public-jboss/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Could not find org/primefaces/primefaces/3.2-SNAPSHOT/primefaces-3.2-SNAPSHOT.pom in https://repository.jboss.org/nexus/content/groups/public-jboss/
                Feb 22, 2012 2:47:57 PM org.jboss.shrinkwrap.resolver.impl.maven.LogTransferListerer transferFailed
                Warnung: Failed downloading org/primefaces/primefaces/3.2-SNAPSHOT/primefaces-3.2-SNAPSHOT.pom from http://repo1.maven.org/maven2/, reason: org.apache.maven.wagon.ResourceDoesNotExistException: Could not find org/primefaces/primefaces/3.2-SNAPSHOT/primefaces-3.2-SNAPSHOT.pom in http://repo1.maven.org/maven2
                Feb 22, 2012 2:47:57 PM org.jboss.shrinkwrap.resolver.impl.maven.LogRepositoryListener artifactDescriptorMissing
                Warnung: Missing artifact descriptor for org.primefaces:primefaces:jar:3.2-SNAPSHOT
                

                 

                Testmethods all fail with:

                 

                 

                java.lang.reflect.UndeclaredThrowableException
                    at $Proxy19.runTestMethod(Unknown Source)
                    at org.jboss.arquillian.protocol.jmx.JMXMethodExecutor.invoke(JMXMethodExecutor.java:69)
                    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 java.lang.reflect.Method.invoke(Method.java:601)
                    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: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: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: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 java.lang.reflect.Method.invoke(Method.java:601)
                    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: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 java.lang.reflect.Method.invoke(Method.java:601)
                    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: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:90)
                    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: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: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.ParentRunner.runLeaf(ParentRunner.java:263)
                    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
                    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
                    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
                    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
                    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
                    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
                    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
                    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:300)
                    at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
                    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
                    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
                    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
                    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
                    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
                    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
                Caused by: java.io.IOException: Failed operation: "No handler for operation invoke-mbean-raw at address [(\"subsystem\" => \"jmx\")]"
                    at org.jboss.as.arquillian.container.TunneledMBeanServerConnection.invoke(TunneledMBeanServerConnection.java:166)
                    at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:305)
                    ... 77 more
                
                
                • 5. Re: Include external libs?
                  Bartosz Majsak Master

                  Have you tried to add Primefaces repo to your project POM?

                  • 6. Re: Include external libs?
                    david meier Newbie

                    yes of course I have the PF repo in the pom like this:

                     

                     

                    <repository>
                    <id>prime-repo</id>
                    <name>PrimeFaces Maven Repository</name>
                    <url>http://repository.primefaces.org</url>
                    <layout>default</layout>
                    </repository>

                     


                     

                    • 7. Re: Include external libs?
                      Bartosz Majsak Master

                      Hi David,

                       

                      please try with .offline() mode and let me know if it helps.

                      • 8. Re: Include external libs?
                        david meier Newbie

                        Sorry, could you hint me to documentation or similar for that method? I could not manage to find any reference on how to use it...

                        tyvm!

                        • 10. Re: Include external libs?
                          david meier Newbie

                          Cheers, the repository warnings are solved with this.

                           

                          Nevertheless, all tests still fail with posted exception above: java.lang.reflect.UndeclaredThrowableException...

                           

                          Even empty test fails with this Ex:

                           

                             @Test
                             public void shouldJustVerify() { }
                          
                          • 11. Re: Include external libs?
                            Bartosz Majsak Master

                            Could you please post the test class, pom.xml and arquillian.xml? That could help me understand where the problem might be.

                            • 12. Re: Include external libs?
                              david meier Newbie

                              testclass:

                               

                               

                              @RunWith(Arquillian.class)
                              @PersistenceTest
                              @UsingDataSet("empty.xml")
                              public class HolidayFacadeTest {
                                 @Deployment
                                 public static Archive<?> createTestArchive() {
                                    MavenDependencyResolver mvnResolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml").goOffline();
                                    return ShrinkWrap.create(WebArchive.class, "test.war")
                                          .addClasses(Global.class, Customer.class, CustomerFacade.class, Resources.class, [...])
                                          .addAsLibraries(mvnResolver.artifact("org.primefaces:primefaces:3.2-SNAPSHOT").resolveAsFiles())
                                          .addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")
                                          .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
                                 }
                              
                                 @Inject
                                 CustomerFacade customerFacade;
                                 
                                 @Test
                                 public void shouldJustVerify() {
                                 }
                              
                              }
                              

                               

                              arquillian:

                               

                               

                              <?xml version="1.0" encoding="UTF-8"?>
                              <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">
                              
                              
                                 <!-- Example configuration for a remote JBoss AS 7 instance -->
                                 <container qualifier="jbossas-remote-7" default="true">
                                    <!-- If you want to use the JBOSS_HOME environment variable, just delete the jbossHome property -->
                                    <configuration>
                                       <property name="jbossHome">/Users/JohnDoe/servers/jboss-as-web-7.0.2.Final</property>
                                    </configuration>
                                 </container>
                                 
                                 <extension qualifier="persistence">
                                   <property name="defaultDataSource">java:jboss/datasources/ExampleDS</property>
                                    <property name="initStatement">SET REFERENTIAL_INTEGRITY FALSE</property>
                                   <property name="userTransactionJndi">java:jboss/UserTransaction</property>
                              </arquillian>
                              
                              
                              

                               

                              pom:

                               

                               

                              <?xml version="1.0" encoding="UTF-8"?>
                              <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
                                  <modelVersion>4.0.0</modelVersion>
                              
                                  <groupId>HolidayCalculatorWEB</groupId>
                                  <artifactId>HolidayCalculatorWEB</artifactId>
                                  <version>0.0.1-SNAPSHOT</version>
                                  <packaging>war</packaging>
                              
                                  <name>Java EE 6 webapp project</name>
                                  <description>A starter Java EE 6 webapp project for use on JBoss AS 7, generated from the jboss-javaee6-webapp archetype</description>
                              
                                  <properties>
                                      <!-- Explicitly declaring the source encoding eliminates the following 
                                          message: -->
                                      <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered 
                                          resources, i.e. build is platform dependent! -->
                                      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                                      <!-- Timestamp format for the maven.build.timestamp property -->
                                      <!-- You can reference property in pom.xml or filtered resources (must 
                                          enable third-party plugin if using Maven < 2.1) -->
                                      <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
                                      <!-- Specify the JBoss AS directory to be the JBOSS_HOME environment variable -->
                                      <jboss.home>${env.JBOSS_HOME}</jboss.home>
                                      <!-- rich faces jboss -->
                                      <org.richfaces.bom.version>4.1.0.Final</org.richfaces.bom.version>
                              
                                      <arquillian_core-version>1.0.0.CR7</arquillian_core-version>
                                      <org.unitils-version>3.3</org.unitils-version>
                                      <org.springframework.version>3.0.5.RELEASE</org.springframework.version>
                                  </properties>
                              
                                  <dependencyManagement>
                                      <dependencies>
                                          <!-- Define the version of JBoss' Java EE 6 APIs we want to import. Any 
                                              dependencies from org.jboss.spec will have their version defined by this 
                                              BOM -->
                                          <!-- JBoss distributes a complete set of Java EE 6 APIs including a Bill 
                                              of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection) 
                                              of artifacts. We use this here so that we always get the correct versions 
                                              of artifacts. Here we use the jboss-javaee-web-6.0 stack (you can read this 
                                              as the JBoss stack of the Java EE Web Profile 6 APIs), and we use version 
                                              2.0.0.Beta1 which is the latest release of the stack. You can actually use 
                                              this stack with any version of JBoss AS that implements Java EE 6, not just 
                                              JBoss AS 7! -->
                                          <dependency>
                                              <groupId>org.jboss.spec</groupId>
                                              <artifactId>jboss-javaee-web-6.0</artifactId>
                                              <version>2.0.0.Final</version>
                                              <type>pom</type>
                                              <scope>import</scope>
                                          </dependency>
                              
                                          <dependency>
                                              <groupId>org.richfaces</groupId>
                                              <artifactId>richfaces-bom</artifactId>
                                              <version>${org.richfaces.bom.version}</version>
                                              <type>pom</type>
                                              <scope>import</scope>
                                          </dependency>
                                      </dependencies>
                                  </dependencyManagement>
                              
                                  <dependencies>
                              
                                      <!-- First declare the APIs we depend on and need for compilation. All 
                                          of them are provided by JBoss AS 7 -->
                              
                                      <!-- Import the CDI API, we use provided scope as the API is included in 
                                          JBoss AS 7 -->
                                      <dependency>
                                          <groupId>javax.enterprise</groupId>
                                          <artifactId>cdi-api</artifactId>
                                          <scope>provided</scope>
                                      </dependency>
                              
                                      <!-- Import the Common Annotations API (JSR-250), we use provided scope 
                                          as the API is included in JBoss AS 7 -->
                                      <dependency>
                                          <groupId>org.jboss.spec.javax.annotation</groupId>
                                          <artifactId>jboss-annotations-api_1.1_spec</artifactId>
                                          <scope>provided</scope>
                                      </dependency>
                              
                                      <!-- Import the JAX-RS API, we use provided scope as the API is included 
                                          in JBoss AS 7 -->
                                      <dependency>
                                          <groupId>org.jboss.spec.javax.ws.rs</groupId>
                                          <artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
                                          <scope>provided</scope>
                                      </dependency>
                              
                                      <!-- Import the JPA API, we use provided scope as the API is included in 
                                          JBoss AS 7 -->
                                      <dependency>
                                          <groupId>org.hibernate.javax.persistence</groupId>
                                          <artifactId>hibernate-jpa-2.0-api</artifactId>
                                          <scope>provided</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.hibernate</groupId>
                                          <artifactId>hibernate-core</artifactId>
                                          <version>4.0.1.Final</version>
                                          <exclusions>
                                              <exclusion>
                                                  <artifactId>dom4j</artifactId>
                                                  <groupId>dom4j</groupId>
                                              </exclusion>
                                          </exclusions>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.hibernate</groupId>
                                          <artifactId>hibernate-commons-annotations</artifactId>
                                          <version>3.3.0.ga</version>
                                          <exclusions>
                                              <exclusion>
                                                  <artifactId>dom4j</artifactId>
                                                  <groupId>dom4j</groupId>
                                              </exclusion>
                                          </exclusions>
                                      </dependency>
                              
                                      <!-- Import the EJB API, we use provided scope as the API is included in 
                                          JBoss AS 7 -->
                                      <dependency>
                                          <groupId>org.jboss.spec.javax.ejb</groupId>
                                          <artifactId>jboss-ejb-api_3.1_spec</artifactId>
                                          <scope>provided</scope>
                                      </dependency>
                              
                                      <!-- JSR-303 (Bean Validation) Implementation -->
                                      <!-- Provides portable constraints such as @Email -->
                                      <!-- Hibernate Validator is shipped in JBoss AS 7 -->
                                      <dependency>
                                          <groupId>org.hibernate</groupId>
                                          <artifactId>hibernate-validator</artifactId>
                                          <version>4.2.0.Final</version>
                                          <scope>provided</scope>
                                          <exclusions>
                                              <exclusion>
                                                  <groupId>org.slf4j</groupId>
                                                  <artifactId>slf4j-api</artifactId>
                                              </exclusion>
                                          </exclusions>
                                      </dependency>
                              
                                      <!-- Now we declare any tools needed -->
                              
                                      <!-- Annotation processor to generate the JPA 2.0 metamodel classes for 
                                          typesafe criteria queries -->
                                      <dependency>
                                          <groupId>org.hibernate</groupId>
                                          <artifactId>hibernate-jpamodelgen</artifactId>
                                          <version>1.1.1.Final</version>
                                          <scope>provided</scope>
                                      </dependency>
                              
                                      <!-- Needed for running tests (you may also use TestNG) -->
                                      <dependency>
                                          <groupId>junit</groupId>
                                          <artifactId>junit</artifactId>
                                          <version>4.10</version>
                                          <scope>test</scope>
                                      </dependency>
                              
                              
                                      <!-- Uitils -->
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-core</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-inject</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-mock</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-mock</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-dbunit</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-database</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-orm</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.unitils</groupId>
                                          <artifactId>unitils-easymock</artifactId>
                                          <version>${org.unitils-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                              
                                      <!-- Optional, but highly recommended -->
                                      <!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA) 
                                          JPA from JUnit/TestNG -->
                                      <dependency>
                                          <groupId>org.jboss.arquillian.junit</groupId>
                                          <artifactId>arquillian-junit-container</artifactId>
                                          <version>${arquillian_core-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.jboss.arquillian.protocol</groupId>
                                          <artifactId>arquillian-protocol-servlet</artifactId>
                                          <version>${arquillian_core-version}</version>
                                          <scope>test</scope>
                                      </dependency>
                              
                              
                                      <dependency>
                                          <groupId>org.jboss.arquillian.extension</groupId>
                                          <artifactId>arquillian-persistence-api</artifactId>
                                          <version>1.0.0.Alpha3</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.jboss.arquillian.extension</groupId>
                                          <artifactId>arquillian-persistence-impl</artifactId>
                                          <version>1.0.0.Alpha3</version>
                                      </dependency>
                                      <!-- arquillian external libs resolver -->
                                      <dependency>
                                          <groupId>org.jboss.shrinkwrap.resolver</groupId>
                                          <artifactId>shrinkwrap-resolver-api-maven</artifactId>
                                          <version>1.0.0-beta-6</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.jboss.shrinkwrap.resolver</groupId>
                                          <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
                                          <version>1.0.0-beta-6</version>
                                      </dependency>
                              
                              
                                      <!-- JSF -->
                                      <dependency>
                                          <groupId>javax.faces</groupId>
                                          <artifactId>jsf-api</artifactId>
                                          <version>2.1</version>
                                      </dependency>
                              
                                      <!-- PrimeFaces -->
                                      <dependency>
                                          <groupId>org.primefaces</groupId>
                                          <artifactId>primefaces</artifactId>
                                          <version>3.2-SNAPSHOT</version>
                                      </dependency>
                                      <!-- theme -->
                                      <dependency>
                                          <groupId>org.primefaces.themes</groupId>
                                          <artifactId>redmond</artifactId>
                                          <version>1.0.3</version>
                                      </dependency>
                              
                                      <!-- Spring -->
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-core</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-expression</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-beans</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-aop</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-context</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-context-support</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-tx</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-jdbc</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-orm</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-oxm</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-web</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-webmvc</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-webmvc-portlet</artifactId>
                                          <version>${org.springframework.version}</version>
                                      </dependency>
                                      <dependency>
                                          <groupId>org.springframework</groupId>
                                          <artifactId>spring-test</artifactId>
                                          <version>${org.springframework.version}</version>
                                          <scope>test</scope>
                                      </dependency>
                                  </dependencies>
                              
                                  <build>
                                      <!-- Maven will append the version to the finalName (which is the name 
                                          given to the generated war, and hence the context root) -->
                                      <finalName>${project.artifactId}</finalName>
                                      <plugins>
                                          <!-- Compiler plugin enforces Java 1.6 compatibility and activates annotation 
                                              processors -->
                                          <plugin>
                                              <artifactId>maven-compiler-plugin</artifactId>
                                              <version>2.3.1</version>
                                              <configuration>
                                                  <source>1.6</source>
                                                  <target>1.6</target>
                                              </configuration>
                                          </plugin>
                                          <plugin>
                                              <artifactId>maven-war-plugin</artifactId>
                                              <version>2.1.1</version>
                                              <configuration>
                                                  <!-- Java EE 6 doesn't require web.xml, Maven needs to catch up! -->
                                                  <failOnMissingWebXml>false</failOnMissingWebXml>
                                              </configuration>
                                          </plugin>
                                          <!-- The JBoss AS plugin deploys your war to a local JBoss AS container -->
                                          <!-- To use, set the JBOSS_HOME environment variable and run: mvn package 
                                              jboss-as:deploy -->
                                          <plugin>
                                              <groupId>org.jboss.as.plugins</groupId>
                                              <artifactId>jboss-as-maven-plugin</artifactId>
                                              <version>7.0.2.Final</version>
                                          </plugin>
                                      </plugins>
                                  </build>
                              
                                  <profiles>
                                      <profile>
                                          <!-- The default profile skips all tests, though you can tune it to run 
                                              just unit tests based on a custom pattern -->
                                          <!-- Seperate profiles are provided for running all tests, including Arquillian 
                                              tests that execute in the specified container -->
                                          <id>default</id>
                                          <activation>
                                              <activeByDefault>true</activeByDefault>
                                          </activation>
                                          <build>
                                              <plugins>
                                                  <plugin>
                                                      <artifactId>maven-surefire-plugin</artifactId>
                                                      <version>2.12</version>
                                                      <configuration>
                                                          <skip>true</skip>
                                                      </configuration>
                                                  </plugin>
                                              </plugins>
                                          </build>
                                      </profile>
                              
                                      <profile>
                                          <!-- We add the JBoss repository as we need the JBoss AS connectors for 
                                              Arquillian -->
                                          <repositories>
                                              <!-- The JBoss Community public repository is a composite repository 
                                                  of several major repositories -->
                                              <!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->
                                              <repository>
                                                  <id>jboss-public-repository</id>
                                                  <name>JBoss Repository</name>
                                                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                                  <!-- These optional flags are designed to speed up your builds by reducing 
                                                      remote server calls -->
                                                  <releases>
                                                  </releases>
                                                  <snapshots>
                                                      <enabled>false</enabled>
                                                  </snapshots>
                                              </repository>
                                              <repository>
                                                  <id>prime-repo</id>
                                                  <name>PrimeFaces Maven Repository</name>
                                                  <url>http://repository.primefaces.org</url>
                                                  <layout>default</layout>
                                              </repository>
                                          </repositories>
                              
                                          <pluginRepositories>
                                              <pluginRepository>
                                                  <id>jboss-public-repository</id>
                                                  <name>JBoss Repository</name>
                                                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                                  <releases>
                                                  </releases>
                                                  <snapshots>
                                                      <enabled>false</enabled>
                                                  </snapshots>
                                              </pluginRepository>
                                          </pluginRepositories>
                              
                                          <!-- An optional Arquillian testing profile that executes tests in your 
                                              JBoss AS instance -->
                                          <!-- This profile will start a new JBoss AS instance, and execute the 
                                              test, shutting it down when done -->
                                          <!-- Run with: mvn clean test -Parq-jbossas-managed -->
                                          <id>arq-jbossas-managed</id>
                                          <dependencies>
                                              <dependency>
                                                  <groupId>org.jboss.as</groupId>
                                                  <artifactId>jboss-as-arquillian-container-managed</artifactId>
                                                  <version>7.0.2.Final</version>
                                                  <scope>test</scope>
                                              </dependency>
                                          </dependencies>
                                      </profile>
                              
                                      <profile>
                                          <!-- We add the JBoss repository as we need the JBoss AS connectors for 
                                              Arquillian -->
                                          <repositories>
                                              <!-- The JBoss Community public repository is a composite repository 
                                                  of several major repositories -->
                                              <!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->
                                              <repository>
                                                  <id>jboss-public-repository</id>
                                                  <name>JBoss Repository</name>
                                                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                                  <!-- These optional flags are designed to speed up your builds by reducing 
                                                      remote server calls -->
                                                  <releases>
                                                  </releases>
                                                  <snapshots>
                                                      <enabled>false</enabled>
                                                  </snapshots>
                                              </repository>
                              
                                              <repository>
                                                  <id>prime-repo</id>
                                                  <name>PrimeFaces Maven Repository</name>
                                                  <url>http://repository.primefaces.org</url>
                                                  <layout>default</layout>
                                              </repository>
                                          </repositories>
                              
                                          <pluginRepositories>
                                              <pluginRepository>
                                                  <id>jboss-public-repository</id>
                                                  <name>JBoss Repository</name>
                                                  <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                                  <releases>
                                                  </releases>
                                                  <snapshots>
                                                      <enabled>false</enabled>
                                                  </snapshots>
                                              </pluginRepository>
                                          </pluginRepositories>
                              
                                          <!-- An optional Arquillian testing profile that executes tests in a remote 
                                              JBoss AS instance -->
                                          <!-- Run with: mvn clean test -Parq-jbossas-remote -->
                                          <id>arq-jbossas-remote</id>
                                          <dependencies>
                                              <dependency>
                                                  <groupId>org.jboss.as</groupId>
                                                  <artifactId>jboss-as-arquillian-container-remote</artifactId>
                                                  <version>7.0.2.Final</version>
                                                  <scope>test</scope>
                                              </dependency>
                                          </dependencies>
                                      </profile>
                              
                                  </profiles>
                              </project>
                              

                               

                               

                              Exceptions:

                               

                              java.lang.NoClassDefFoundError: org/dbunit/dataset/xml/FlatXmlDataSetBuilder
                                  at org.jboss.arquillian.persistence.data.dbunit.dataset.DataSetBuilder.build(DataSetBuilder.java:53)
                                  at org.jboss.arquillian.persistence.data.dbunit.DBUnitPersistenceTestLifecycleHandler.createInitialDataSet(DBUnitPersistenceTestLifecycleHandler.java:135)
                                  at org.jboss.arquillian.persistence.data.dbunit.DBUnitPersistenceTestLifecycleHandler.createInitialDataSets(DBUnitPersistenceTestLifecycleHandler.java:125)
                                  at org.jboss.arquillian.persistence.data.dbunit.DBUnitPersistenceTestLifecycleHandler.initializeDataSeeding(DBUnitPersistenceTestLifecycleHandler.java:91)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
                                  at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                                  at org.jboss.arquillian.persistence.lifecycle.DatasetHandler.seedDatabase(DatasetHandler.java:61)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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:75)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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:60)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.persistence.data.dbunit.DBUnitPersistenceTestLifecycleHandler.createDatabaseConnection(DBUnitPersistenceTestLifecycleHandler.java:72)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
                                  at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                                  at org.jboss.arquillian.persistence.lifecycle.PersistenceTestHandler.beforeTest(PersistenceTestHandler.java:79)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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:75)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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:60)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  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.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
                                  at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)
                                  at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:222)
                                  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.ParentRunner.runLeaf(ParentRunner.java:263)
                                  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
                                  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
                                  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
                                  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
                                  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
                                  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
                                  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
                                  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:300)
                                  at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
                                  at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
                                  at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
                                  at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)
                                  at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:128)
                                  at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:107)
                                  at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:203)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
                                  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
                                  at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
                                  at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
                                  at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
                                  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
                                  at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
                                  at org.jboss.as.jmx.tcl.TcclMBeanServer.invoke(TcclMBeanServer.java:214)
                                  at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
                                  at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
                                  at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
                                  at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
                                  at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                  at java.lang.reflect.Method.invoke(Unknown Source)
                                  at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
                                  at sun.rmi.transport.Transport$1.run(Unknown Source)
                                  at sun.rmi.transport.Transport$1.run(Unknown Source)
                                  at java.security.AccessController.doPrivileged(Native Method)
                                  at sun.rmi.transport.Transport.serviceCall(Unknown Source)
                                  at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
                                  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
                                  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                                  at java.lang.Thread.run(Unknown Source)
                              Caused by: java.lang.ClassNotFoundException: org.dbunit.dataset.xml.FlatXmlDataSetBuilder from [Module "deployment.arquillian-service:main" from Service Module Loader]
                                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
                                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
                                  ... 140 more
                              
                              
                              • 14. Re: Include external libs?
                                david meier Newbie

                                Added the servlet to arquillian.xml and created a managed profile as done in your link. But still getting the Flax error from above!

                                 

                                    <profile>
                                      <id>jbossas-7-managed</id>
                                      <activation>
                                        <activeByDefault>true</activeByDefault>
                                      </activation>
                                      <dependencies>
                                        <dependency>
                                          <groupId>org.jboss.arquillian.protocol</groupId>
                                          <artifactId>arquillian-protocol-servlet</artifactId>
                                          <version>${arquillian_core-version}</version>
                                          <scope>test</scope>
                                        </dependency>
                                        <dependency>
                                          <groupId>org.jboss.as</groupId>
                                          <artifactId>jboss-as-arquillian-container-managed</artifactId>
                                          <version>${version.jbossas_7}</version>
                                          <scope>test</scope>
                                        </dependency>
                                        <dependency>
                                          <groupId>org.jboss.spec</groupId>
                                          <artifactId>jboss-javaee-6.0</artifactId>
                                          <version>${version.jbossas_spec}</version>
                                          <type>pom</type>
                                          <scope>provided</scope>
                                        </dependency>
                                      </dependencies>
                                </profile>
                                
                                
                                1 2 Previous Next