2 Replies Latest reply on Jul 13, 2012 5:52 AM by Karel Piwko

    Issues using Arquillian with EAP6

    Ian Hands Newbie

      I have a couple arquillian issues at the moment.

       

      • I cannot seem to launch an arquillian test unless I include the jboss-client.jar in the CP, and I can't seem to do that with maven.
        • I have seen the message in bin/client/README.txt, and added the following to my dependencyManagement section.
          • <dependency>
                      <groupId>org.jboss.bom</groupId>
                      <artifactId>jboss-javaee-6.0-with-hibernate</artifactId>
                      <version>${jboss.bom.version}</version>
                      <type>pom</type>
                      <scope>import</scope>
            </dependency>
            <dependency>
                      <groupId>org.jboss.as</groupId>
                      <artifactId>jboss-as-ejb-client-bom</artifactId>
                      <version>7.1.2.Final-redhat-1</version>
                      <type>pom</type>
            </dependency>
            
        • StillI see:
          • Tests in error: 
              com.example.test.Test: org.xnio.XnioProvider: Provider org.xnio.nio.NioXnioProvider could not be instantiated: java.lang.NoSuchMethodError: org.jboss.logging.Logger.tracef(Ljava/lang/String;Ljava/lang/Object;)V
            
        • This does go away when I include the jboss-client.jar in the build path though
      • With the jboss-client.jar in place I get further (running managed atm)
        • I can see the server start, but the testing artifact is never deployed
          • 18:43:56,251 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8180
            18:43:56,527 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
            18:43:56,771 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory /home/iphands/portal_server_ws/jboss-eap-6.0/standalone/deployments
            18:43:56,782 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on 127.0.0.1:4547
            18:43:56,782 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on 127.0.0.1:10099
            18:43:56,963 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:10090
            18:43:56,964 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) started in 3128ms - Started 141 of 221 services (79 services are passive or on-demand
            

       

      Is there something more I need to do?

      Thanks!

        • 1. Re: Issues using Arquillian with EAP6
          Ian Hands Newbie

          FWIW I see the following with when I switch to -remote:

           

          log4j:WARN No appenders could be found for logger (org.jboss.logging).
          log4j:WARN Please initialize the log4j system properly.
          Jun 28, 2012 6:47:42 PM org.jboss.arquillian.container.impl.MapObject populate
          WARNING: Configuration contain properties not supported by the backing object org.jboss.as.arquillian.container.remote.RemoteContainerConfiguration
          Unused property entries: {jbossHome=/home/iphands/portal_server_ws/jboss-eap-6.0/}
          Supported property names: [managementPort, username, managementAddress, password]
          Jun 28, 2012 6:47:48 PM org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1 call
          WARNING: Exception encountered during export of archive
          org.jboss.shrinkwrap.api.exporter.ArchiveExportException: Failed to write asset to output: /WEB-INF/lib/arquillian-testenricher-ejb.jar
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$3.handle(StreamExporterDelegateBase.java:272)
                    at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:219)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.processNode(StreamExporterDelegateBase.java:233)
                    at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:105)
                    at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
                    at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.processNode(AbstractExporterDelegate.java:109)
                    at org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate.doExport(AbstractExporterDelegate.java:95)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase.access$001(StreamExporterDelegateBase.java:50)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:121)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$1.call(StreamExporterDelegateBase.java:116)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:124)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                    at java.lang.Thread.run(Thread.java:679)
          Caused by: java.io.IOException: Pipe closed
                    at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261)
                    at java.io.PipedInputStream.receive(PipedInputStream.java:227)
                    at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
                    at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
                    at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:213)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:84)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate.closeEntry(JdkZipExporterDelegate.java:40)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:265)
                    at org.jboss.shrinkwrap.impl.base.exporter.StreamExporterDelegateBase$2.execute(StreamExporterDelegateBase.java:233)
                    at org.jboss.shrinkwrap.impl.base.io.IOUtil.closeOnComplete(IOUtil.java:217)
                    ... 15 more
          Jun 28, 2012 6:47:48 PM org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1 call
          WARNING: [SHRINKWRAP-120] Possible deadlock scenario: Got exception on closing the ZIP out stream: Pipe closed
          java.io.IOException: Pipe closed
                    at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261)
                    at java.io.PipedInputStream.receive(PipedInputStream.java:227)
                    at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
                    at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
                    at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:213)
                    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:318)
                    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:163)
                    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:338)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:148)
                    at org.jboss.shrinkwrap.impl.base.exporter.zip.JdkZipExporterDelegate$1.call(JdkZipExporterDelegate.java:118)
                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                    at java.lang.Thread.run(Thread.java:679)
          
          • 2. Re: Issues using Arquillian with EAP6
            Karel Piwko Master

            Hi Ian,

             

            how do you define Arquillian versions? You should have following BOM in <dependencyManagement>:

             

            <dependency>
                      <groupId>org.jboss.bom</groupId>
                      <artifactId>jboss-javaee-6.0-with-tools</artifactId>
                      <version>${jboss.bom.version}</version>
                      <type>pom</type>
                      <scope>import</scope>
            </dependency>

             

             

            Could you please post @Deployment method? I guess the problem is rather ShrinkWrap related, highly suspicious that the problem is caused by wrong scopes in Shrinkwrap/Arquillian Depchains which is fixed in -redhat-1 variant of -with-tools artifacts.