7 Replies Latest reply on Jun 1, 2012 11:29 AM by atiyou

    Arquillian and AS7

    christian.bauer

      This might save someone a few hours.

       

      {code}

              <repository>

                  <id>jboss-repo</id>

                  <url>https://repository.jboss.org/nexus/content/groups/public/</url>

              </repository>

       

              <junit-version>4.8.2</junit-version>

              <arquillian-version>1.0.0.CR1</arquillian-version>

              <jboss-as-version>7.0.0.Final</jboss-as-version>

       

                      <plugin>

                          <artifactId>maven-surefire-plugin</artifactId>

                          <version>2.5</version>

                          <configuration>

                              <environmentVariables>

                                  <JBOSS_HOME>/Users/cb/work/local/jboss/server/current</JBOSS_HOME>

                              </environmentVariables>

                          </configuration>

                      </plugin>

       

              <dependency>

                  <groupId>junit</groupId>

                  <artifactId>junit</artifactId>

                  <version>${junit-version}</version>

                  <scope>test</scope>

              </dependency>

       

               <dependency>

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

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

                  <version>${arquillian-version}</version>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>org.jboss.as</groupId>

                  <artifactId>jboss-as-arquillian-container-managed</artifactId>

                  <version>${jboss-as-version}</version>

                  <scope>test</scope>

                  <exclusions>

                      <!-- Depends on outdated Shrinkwrap beta2, latest Arquillian uses beta3 -->

                      <exclusion>

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

                          <artifactId>shrinkwrap-api</artifactId>

                      </exclusion>

                      <exclusion>

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

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

                      </exclusion>

                  </exclusions>

              </dependency>

       

      {code}

       

      arquillian.xml

       

      {code}

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

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

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

           xsi:schemaLocation="http://jboss.org/schema/arquillian

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

       

          <container qualifier="jboss7" default="true"> <!-- default true?! WTF is wrong with you... -->

              <protocol type="jmx-as7">

                  <property name="executionType">REMOTE</property>

              </protocol>

              <configuration>

                  <!-- Faster startup -->

                  <property name="javaVmArguments">-d32 -noverify</property>

              </configuration>

          </container>

      </arquillian>

      {code}

       

      Impressive display of modularity-gone-wrong here, especially like the hidden log4j AND commons-logging dependency:

       

      {code}

      [INFO] +- org.jboss.as:jboss-as-arquillian-container-managed:jar:7.0.0.Final:test

      [INFO] |  +- org.jboss.as:jboss-as-arquillian-common:jar:7.0.0.Final:test

      [INFO] |  |  +- org.jboss.arquillian.container:arquillian-container-osgi:jar:1.0.0.CR2:test

      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-osgi:jar:1.0.0.CR2:test

      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.as:jboss-as-arquillian-testenricher-msc:jar:7.0.0.Final:test

      [INFO] |  |  |  \- org.jboss.msc:jboss-msc:jar:1.0.0.GA:test

      [INFO] |  |  +- org.jboss.as:jboss-as-controller-client:jar:7.0.0.Final:test

      [INFO] |  |  |  +- org.jboss.as:jboss-as-protocol:jar:7.0.0.Final:test

      [INFO] |  |  |  |  +- org.jboss.logmanager:jboss-logmanager:jar:1.2.0.GA:test

      [INFO] |  |  |  |  +- org.jboss.marshalling:jboss-marshalling:jar:1.3.0.GA:test

      [INFO] |  |  |  |  +- org.jboss.remoting3:jboss-remoting:jar:3.2.0.Beta2:test

      [INFO] |  |  |  |  |  \- org.jboss.xnio:xnio-api:jar:3.0.0.Beta2:test

      [INFO] |  |  |  |  \- org.jboss.xnio:xnio-nio:jar:3.0.0.Beta3:test

      [INFO] |  |  |  +- org.jboss:jboss-dmr:jar:1.0.0.Final:test

      [INFO] |  |  |  \- org.jboss.threads:jboss-threads:jar:2.0.0.GA:test

      [INFO] |  |  +- org.jboss.as:jboss-as-jmx:jar:7.0.0.Final:test

      [INFO] |  |  |  +- org.jboss:jboss-common-core:jar:2.2.17.GA:test

      [INFO] |  |  |  \- org.jboss.as:jboss-as-server:jar:7.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-controller:jar:7.0.0.Final:test

      [INFO] |  |  |     |  \- org.jboss:staxmapper:jar:1.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-domain-http-api:jar:7.0.0.Final:test

      [INFO] |  |  |     |  +- org.jboss.as:jboss-as-domain-management:jar:7.0.0.Final:test

      [INFO] |  |  |     |  +- org.jboss.com.sun.httpserver:httpserver:jar:1.0.0.Beta1:test

      [INFO] |  |  |     |  \- org.jboss.as:jboss-as-console:jar:resources:1.0.0.Beta13:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-deployment-repository:jar:7.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-embedded:jar:7.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-process-controller:jar:7.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.as:jboss-as-remoting:jar:7.0.0.Final:test

      [INFO] |  |  |     |  +- org.jboss.as:jboss-as-network:jar:7.0.0.Final:test

      [INFO] |  |  |     |  \- org.jboss.as:jboss-as-threads:jar:7.0.0.Final:test

      [INFO] |  |  |     +- org.jboss:jandex:jar:1.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.invocation:jboss-invocation:jar:1.0.0.Final:test

      [INFO] |  |  |     +- org.jboss.logmanager:jboss-logmanager-log4j:jar:1.0.0.GA:test

      [INFO] |  |  |     +- org.jboss.stdio:jboss-stdio:jar:1.0.0.GA:test

      [INFO] |  |  |     \- org.jboss:jboss-vfs:jar:3.0.1.GA:test

      [INFO] |  |  +- org.jboss.osgi.spi:jbosgi-spi:jar:1.0.28:test

      [INFO] |  |  |  \- org.jboss.osgi.vfs:jbosgi-vfs:jar:1.0.5:test

      [INFO] |  |  \- org.osgi:org.osgi.core:jar:4.2.0:test

      [INFO] |  +- org.jboss.as:jboss-as-arquillian-protocol-jmx:jar:7.0.0.Final:test

      [INFO] |  |  +- org.jboss.as:jboss-as-osgi-service:jar:7.0.0.Final:test

      [INFO] |  |  |  +- org.jboss.modules:jboss-modules:jar:1.0.1.GA:test

      [INFO] |  |  |  +- org.jboss.osgi.deployment:jbosgi-deployment:jar:1.0.10:test

      [INFO] |  |  |  +- org.jboss.osgi.framework:jbosgi-framework-core:jar:1.0.0.CR8:test

      [INFO] |  |  |  |  +- org.jboss.osgi.resolver:jbosgi-resolver-felix:jar:1.0.9:test

      [INFO] |  |  |  |  |  \- org.jboss.osgi.resolver:jbosgi-resolver-spi:jar:1.0.9:test

      [INFO] |  |  |  |  \- org.jboss.osgi.vfs:jbosgi-vfs30:jar:1.0.6:test

      [INFO] |  |  |  +- org.jboss.osgi.resolver:jbosgi-resolver-api:jar:1.0.9:test

      [INFO] |  |  |  |  \- org.jboss.osgi.resolver:jbosgi-resolver-metadata:jar:1.0.9:test

      [INFO] |  |  |  \- org.osgi:org.osgi.compendium:jar:4.2.0:test

      [INFO] |  |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.0.0.CR1:test

      [INFO] |  |  \- org.jboss.arquillian.protocol:arquillian-protocol-jmx:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.sasl:jboss-sasl:jar:1.0.0.Beta1:test

      [INFO] |  |  \- org.jboss.logging:jboss-logging:jar:3.0.0.Beta5:test

      [INFO] |  +- javax.inject:javax.inject:jar:1:test

      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-api:jar:1.0.0.CR1:test

      [INFO] |  \- org.jboss.as:jboss-as-build-config:jar:7.0.0.Final:test

      [INFO] +- junit:junit:jar:4.8.2:test

      [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.0.0.CR1:test

      [INFO] |  |  \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-beta-3:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.0.0.CR1:test

      [INFO] |  |  \- org.jboss.arquillian.container:arquillian-container-spi:jar:1.0.0.CR1:test

      [INFO] |  |     \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api:jar:1.0.0-beta-1:test

      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.0.0.CR1:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.0.0.CR1:test

      [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.0.0.CR1:test

      [INFO] |  |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl:jar:1.0.0-beta-1:test

      [INFO] |  |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:1.0.0-beta-3:test

      [INFO] |  |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:1.0.0-beta-3:test

      [INFO] |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:1.0.0-beta-3:test

      [INFO] |  |     +- org.sonatype.aether:aether-api:jar:1.8:test

      [INFO] |  |     +- org.sonatype.aether:aether-util:jar:1.8:test

      [INFO] |  |     +- org.sonatype.aether:aether-connector-wagon:jar:1.8:test

      [INFO] |  |     |  +- org.sonatype.aether:aether-spi:jar:1.8:test

      [INFO] |  |     |  \- org.codehaus.plexus:plexus-container-default:jar:1.5.5:test

      [INFO] |  |     |     +- org.codehaus.plexus:plexus-classworlds:jar:2.2.2:test

      [INFO] |  |     |     +- org.apache.xbean:xbean-reflect:jar:3.4:test

      [INFO] |  |     |     |  +- log4j:log4j:jar:1.2.12:test

      [INFO] |  |     |     |  \- commons-logging:commons-logging-api:jar:1.1:test

      [INFO] |  |     |     \- com.google.collections:google-collections:jar:1.0:test

      [INFO] |  |     +- org.apache.maven:maven-aether-provider:jar:3.0.1:test

      [INFO] |  |     |  +- org.apache.maven:maven-model:jar:3.0.1:test

      [INFO] |  |     |  +- org.apache.maven:maven-model-builder:jar:3.0.1:test

      [INFO] |  |     |  +- org.apache.maven:maven-repository-metadata:jar:3.0.1:test

      [INFO] |  |     |  +- org.sonatype.aether:aether-impl:jar:1.8:test

      [INFO] |  |     |  +- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test

      [INFO] |  |     |  \- org.codehaus.plexus:plexus-utils:jar:2.0.4:test

      [INFO] |  |     +- org.apache.maven:maven-settings-builder:jar:3.0.1:test

      [INFO] |  |     |  +- org.codehaus.plexus:plexus-interpolation:jar:1.14:test

      [INFO] |  |     |  +- org.apache.maven:maven-settings:jar:3.0.1:test

      [INFO] |  |     |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test

      [INFO] |  |     |     \- org.sonatype.plexus:plexus-cipher:jar:1.4:test

      [INFO] |  |     +- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-7:test

      [INFO] |  |     +- org.apache.maven.wagon:wagon-file:jar:1.0-beta-7:test

      [INFO] |  |     \- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-7:test

      [INFO] |  |        \- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-7:test

      [INFO] |  |           \- commons-logging:commons-logging:jar:1.1.1:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.0.0.CR1:test

      [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-beta-3:test

      [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-beta-3:test

      {code}

       

      Tests seem to run, although I'm not sure why I'd spend 15 seconds deploying some OSGi crap I didn't even ask for. Also seems to redeploy a few services after several failures:

       

      {code}

      13:35:19,546 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 7220ms - Started 110 of 169 services (57 services are passive or on-demand)

      13:35:20,801 INFO  [org.jboss.as.osgi] (MSC service thread 1-2) Unregister module: Module "deployment.arquillian-service:main" from Service Module Loader

      13:35:20,801 ERROR [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Cannot find bundle associated with module: deployment.arquillian-service:main

      13:35:20,812 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment arquillian-service in 57ms

      13:35:20,835 INFO  [org.jboss.as.server.controller] (pool-2-thread-7) Undeployed "arquillian-service"

      13:35:21,867 INFO  [org.jboss.as.server.deployment] (pool-1-thread-1) Content added at location /Users/cb/work/local/jboss/server/current/standalone/data/content/af/b8d55c7e7e9d78eec8d070e61eff9f374e491a/content

      13:35:21,874 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "arquillian-service"

      13:35:22,075 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) Register module: Module "deployment.arquillian-service:main" from Service Module Loader

      {code}

        • 1. Re: Arquillian and AS7
          christian.bauer

          Getting rid of the "could not read active container configuration" nonsense startup message:

           

          {code}

          <plugin>

              <artifactId>maven-surefire-plugin</artifactId>

              <version>2.9</version>

              <configuration>

                  <environmentVariables>

                      <JBOSS_HOME>/Users/cb/work/local/jboss/server/current</JBOSS_HOME>

                  </environmentVariables>

                  <systemPropertyVariables>

                      <!-- Silencing the broken code in getActiveConfiguration(), see

                          https://github.com/arquillian/arquillian/blob/master/impl-base/src/main/java/org/jboss/arquillian/impl/client/container/ContainerRegistryCreator.java

                       -->

                      <arquillian.launch>jboss7</arquillian.launch>

                  </systemPropertyVariables>

              </configuration>

          </plugin>

          {code}

           

          Still get randomly dozens of these (AS 7.0.0, JDK 1.6.0_26 on Lion):

           

          {code}

          [XNIO NIO Read 7 ] ERROR  - 11:38:57,247 - oting3.remote.RemoteConnection#handleException: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

          {code}

           

          Everything seems to work, I guess the exception is just ignored and the remote operation tried again until it succeeds.

          • 2. Re: Arquillian and AS7
            khatchik

            Christian,

             

            Hi, I am new with Jboss and with Arquillian, is there any chance you can attach the full pom.xml???

             

            I've been days trying to make arquillian to work with the latest release of Jboss and I am really frustrated at this point.

             

            Any help would be much appreciated.

            • 3. Re: Arquillian and AS7
              christian.bauer

              Here is an update for JBoss AS 7.0.1. Naturally, the version (1.0.0.CR1) in the Arquillian docs is still wrong:

               

              {code:xml}

               

                  <properties>

                      <jboss-as7-install-directory>/Users/cb/work/local/jboss/server/current</jboss-as7-install-directory>

               

                      <arquillian-version>1.0.0.CR4</arquillian-version>

                      <jboss-as-version>7.0.1.Final</jboss-as-version>

                  </properties>

               

                  <build>

                      <pluginManagement>

                          <plugins>

               

                              <plugin>

                                  <groupId>org.apache.maven.plugins</groupId>

                                  <artifactId>maven-surefire-plugin</artifactId>

                                  <version>2.9</version>

                                  <configuration>

                                      <environmentVariables>

                                          <JBOSS_HOME>${jboss-as7-install-directory}</JBOSS_HOME>

                                      </environmentVariables>

                                      <systemPropertyVariables>

                                          <!-- Silencing the broken code in getActiveConfiguration(), see

                                              https://github.com/arquillian/arquillian/blob/master/impl-base/src/main/java/org/jboss/arquillian/impl/client/container/ContainerRegistryCreator.java

                                           -->

                                          <arquillian.launch>jboss7</arquillian.launch>

                                      </systemPropertyVariables>

                                  </configuration>

                              </plugin>

               

                          </plugins>

                      </pluginManagement>

                  </build>

               

                  <dependencies>

               

                      <dependency>

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

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

                          <version>${arquillian-version}</version>

                      </dependency>

               

                       <dependency>

                          <groupId>org.jboss.as</groupId>

                          <artifactId>jboss-as-arquillian-container-managed</artifactId>

                          <version>${jboss-as-version}</version>

                      </dependency>

               

                  </dependencies>

               

              {code}

               

              Don't forget the fantastic arquillian.xml in the root of your classpath (src/test/resources/ for example):

               

              {code:xml}

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

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

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

                        xsi:schemaLocation="http://jboss.org/schema/arquillian

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

               

               

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

                      <protocol type="jmx-as7">

                          <property name="executionType">REMOTE</property> <!-- That's actually required even for MANAGED mode -->

                      </protocol>

                      <configuration>

                          <!-- Faster startup, is that actually used for MANAGED? -->

                          <property name="javaVmArguments">-d32 -noverify</property>

                      </configuration>

                  </container>

               

              </arquillian>

              {code}

               

              The remaining problems are unwanted OS-shit-eye service deployment wasting two seconds:

               

              {code}

              09:16:35,075 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "arquillian-service"

              09:16:35,212 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to arquillian-service

              09:16:35,244 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) JBossOSGi Framework Core - 1.0.0.CR8

              09:16:35,295 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: system.bundle:0.0.0

              09:16:35,503 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: jboss-as-osgi-configadmin:7.0.1.Final

              09:16:35,525 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: jboss-osgi-jmx:1.0.10

              09:16:35,531 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: jboss-osgi-logging:1.0.0

              09:16:35,645 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.configadmin:1.2.8

              09:16:35,729 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.metatype:1.0.4

              09:16:35,865 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: org.apache.felix.eventadmin:1.2.6

              09:16:35,868 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.scr:1.6.0

              09:16:35,870 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: javaee.api:0.0.0

              09:16:35,924 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.log:1.0.0

              09:16:36,075 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jboss-osgi-http:1.0.3

              09:16:36,078 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.aries.jmx:0.3.0

              09:16:36,139 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: jbosgi-webapp:1.0.2

              09:16:36,164 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jbosgi-blueprint:1.0.2

              09:16:36,222 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jbosgi-webconsole:1.0.6

              09:16:36,224 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: org.jboss.logging:3.0.0

              09:16:36,281 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: org.apache.aries.util:0.3.0

              09:16:36,358 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: osgi.cmpn:4.2.0.200908310645

              09:16:36,395 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.webconsole:3.1.6.SP1

              09:16:36,437 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: jboss-osgi-xerces:2.9.1.SP7

              09:16:36,484 INFO  [org.jboss.osgi.framework.internal.StartLevelPlugin] (MSC service thread 1-4) Starting bundles for start level: 1

              09:16:36,622 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: org.apache.felix.configadmin:1.2.8

              09:16:36,640 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: org.apache.felix.log:1.0.0

              09:16:36,651 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: jboss-osgi-logging:1.0.0

              09:16:36,656 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: jboss-as-osgi-configadmin:7.0.1.Final

              09:16:36,657 INFO  [org.jboss.osgi.framework.internal.FrameworkActive] (MSC service thread 1-4) OSGi Framework started

              {code}

               

              ...and random remoting errors which don't seem to affect anything:

               

              {code}

              [XNIO NIO Read 3 ] ERROR  - 09:16:36,688 - oting3.remote.RemoteConnection#handleException: JBREM00200: Remote connection failed: java.io.IOException: Window open for non-existent channel

              {code}

               

              Btw, can anyone tell Remy to stop that:

               

              {code}

              09:16:30,097 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-3) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

              {code}

               

               

              • 4. Re: Arquillian and AS7
                yuanqixun

                Hello, I just want to test my CDI bean, I try arquillian many time, but I'm failed.

                Could anyone give me a simple example to test it?

                It's better if it based eclipse IDE, thanks.

                • 5. Re: Arquillian and AS7
                  aslak
                  • 6. Re: Arquillian and AS7
                    atiyou

                    Hello christian,

                     

                    I try  to setup an arquillian test with AS7,  i tried to test my application using embedded-Arqullian-Weld container and it's work.

                     

                    now i have some errors concerns missing dependencies bellow

                     

                    DescriptionResourcePathLocationType
                    Missing artifact org.osgi:org.osgi.compendium:jar:4.2.0pom.xml/jee6-blog-tutorialline 3Maven Dependency Problem
                    Missing artifact org.osgi:org.osgi.enterprise:jar:4.2.0pom.xml/jee6-blog-tutorialline 3Maven Dependency Problem

                     

                    i have tried to exclude them from the pom file but i cannot do

                     

                    i had also a missed artifact "aether-api" but i excluded it like you did above

                    i don't know if osgi.compendium and osgi.enterprise are required to run my test with as7 !

                     

                    any Idea ?

                    Tks

                    • 7. Re: Arquillian and AS7
                      atiyou

                      Hello,

                       

                      Anyone can help, i still trying to resolve the problem

                       

                      i don't have another way to test my EJB's except with AS7, cause i have a troubles to run my application under Standlone GlassFish...

                       

                      to summarize :

                      i followed this guide  http://arquillian.org/guides/getting_started_fr/

                      and till now i'm able to run a simple test with "arquillian-weld-ee-embedded" and "arquillian-glassfish-embedded" but not yet with standlone AS7

                       

                      I have tried to install booth jars (org.osgi.compendium:jar:4.2.0, org.osgi.enterprise:jar:4.2.0 )  manually but i cannot find a valid artifacts ...

                       

                      plz help