5 Replies Latest reply on Nov 30, 2012 6:21 AM by ashutoshd
      • 1. Re: Arquillian configuration for Seam 2.2.1CR1 and Jboss EAP 5.1 and testNG
        aslak

        What's the problem?

        • 2. Re: Arquillian configuration for Seam 2.2.1CR1 and Jboss EAP 5.1 and testNG
          ashutoshd

          I was not able to find any reference guide for EAP 5.1 version in Arquillian  web site

          I am getting container as null when running .

          • 4. Re: Arquillian configuration for Seam 2.2.1CR1 and Jboss EAP 5.1 and testNG
            aslak

            ashutosh deora wrote:

             

            I am getting container as null when running .

            You mean? INFO: Could not read active container configuration: null

             

            This is not a problem, it's just a very poor written message telling you it will use what's 'default'.

             

            But you're using a very old version, please upgrade. See Getting Started Guide for pom setup:

            http://arquillian.org/guides/getting_started/#add_the_arquillian_apis

             


            • 5. Re: Arquillian configuration for Seam 2.2.1CR1 and Jboss EAP 5.1 and testNG
              ashutoshd

              I am here putting up my pom.xml , arquillian.xml,log here 

              Please have a look at it and let me know wat is worng with this

               

               

              Integeration-test maven

               

              <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>

                        <artifactId>integration-test</artifactId>

                        <name>integration-test</name>

                        <packaging>jar</packaging>

                        <parent>

                                  <groupId>xxxxxx</groupId>

                                  <artifactId>xxxxxx</artifactId>

                                  <version>xxxxxx</version>

                        </parent>

               

               

                        <repositories>

                                  <repository>

                                            <id>jboss.public.repo</id>

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

                                  </repository>

                        </repositories>

                        <dependencies>

                                  <dependency>

                                            <groupId>commons-collections</groupId>

                                            <artifactId>commons-collections</artifactId>

                                            <version>${commons-collections.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.seam</groupId>

                                            <artifactId>jboss-seam</artifactId>

                                            <version>${seam.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>commons-lang</groupId>

                                            <artifactId>commons-lang</artifactId>

                                            <version>${commons-lang.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>xxxxxx</groupId>

                                            <artifactId>domain</artifactId>

                                            <version>${project.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>xxxxxx</groupId>

                                            <artifactId>biz</artifactId>

                                            <version>${project.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>xxxxxx</groupId>

                                            <artifactId>persistence</artifactId>

                                            <version>${project.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>xxxxxx</groupId>

                                            <artifactId>common</artifactId>

                                            <version>${project.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>javax.ejb</groupId>

                                            <artifactId>ejb-api</artifactId>

                                            <version>${ejb.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>log4j</groupId>

                                            <artifactId>log4j</artifactId>

                                            <version>${log4j.version}</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.dbunit</groupId>

                                            <artifactId>dbunit</artifactId>

                                            <version>2.4.8</version>

                                  </dependency>

                                  <dependency>

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

                                            <artifactId>arquillian-testng</artifactId>

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

                                            <scope>provided</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>com.oracle</groupId>

                                            <artifactId>ojdbc14</artifactId>

                                            <version>10.2.0.3.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/ojdbc14.jar</systemPath>

                                            <exclusions>

                                                      <exclusion>

                                                                <groupId>org.apache.tomcat</groupId>

                                                                <artifactId>catalina</artifactId>

                                                      </exclusion>

                                            </exclusions>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.testng</groupId>

                                            <artifactId>testng</artifactId>

                                            <version>5.14.6</version>

                                            <scope>test</scope>

                                  </dependency>

                                  <dependency>

                                            <groupId>oswego-concurrent</groupId>

                                            <artifactId>concurrent</artifactId>

                                            <version>1.3.4</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.integration</groupId>

                                            <artifactId>jboss-integration</artifactId>

                                            <version>5.1.0.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.logging</groupId>

                                            <artifactId>jboss-logging-spi</artifactId>

                                            <version>2.1.0.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss</groupId>

                                            <artifactId>jboss-mdr</artifactId>

                                            <version>2.0.1.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss</groupId>

                                            <artifactId>jboss-common-core</artifactId>

                                            <version>2.2.14.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss</groupId>

                                            <artifactId>jboss-remoting</artifactId>

                                            <version>2.2.1.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.client</groupId>

                                            <artifactId>jboss-client</artifactId>

                                            <version>5.1.0.CR1</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-profileservice-client</artifactId>

                                            <version>2.0.10.GA</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-profileservice-client.jar

                                            </systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-aspect-jdk50-client</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-aspect-jdk50-client.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-javaee</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-javaee.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-vfs</artifactId>

                                            <version>1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-vfs.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-security-aspects</artifactId>

                                            <version>1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-security-aspects.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-managed</artifactId>

                                            <version>1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-managed.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.man</groupId>

                                            <artifactId>jboss-metatype</artifactId>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-metatype.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.microcontainer</groupId>

                                            <artifactId>jboss-microcontainer</artifactId>

                                            <version>2.0.10.GA</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-dependency.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>trove</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/trove.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jbosssx-client</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jbosssx-client.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-aop-client</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-aop-client.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.naming</groupId>

                                            <artifactId>jnp-client</artifactId>

                                            <version>5.0.3.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.slf4j</groupId>

                                            <artifactId>slf4j-jboss-logging</artifactId>

                                            <version>1.0.2.GA</version>

                                  </dependency>

                                  <dependency>

                                            <groupId>jboss-eap</groupId>

                                            <artifactId>jboss-security-spi</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-security-spi.jar</systemPath>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.security</groupId>

                                            <artifactId>jboss-security-spi</artifactId>

                                            <version>5.1.0</version>

                                            <scope>system</scope>

                                            <systemPath>${basedir}/lib/jboss-security-spi.jar</systemPath>

                                  </dependency>

               

                                   <dependency>

                                            <groupId>commons-codec</groupId>

                                            <artifactId>commons-codec</artifactId>

                                            <version>${codec.version}</version>

                                   </dependency>

               

                                  </dependencies>

                        <build>

                                  <plugins>

                                            <plugin>

                                                      <artifactId>maven-compiler-plugin</artifactId>

                                                      <version>${maven.compiler.plugin.version}</version>

                                                      <configuration>

                                                                <source>${java.version}</source>

                                                                <target>${java.version}</target>

                                                                <encoding>${project.build.sourceEncoding}</encoding>

                                                                <archive>

                                                                          <addMavenDescriptor>false</addMavenDescriptor>

                                                                </archive>

                                                      </configuration>

                                            </plugin>

                                            <plugin>

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

                                                      <artifactId>maven-antrun-plugin</artifactId>

                                                      <executions>

                                                                <execution>

                                                                          <id>test1ex</id>

                                                                          <phase>initialize</phase>

                                                                          <goals>

                                                                                    <goal>run</goal>

                                                                          </goals>

                                                                          <configuration>

                                                                                    <tasks>

                                                                                              <echo>:ECHO:</echo>

                                                                                    </tasks>

                                                                          </configuration>

                                                                </execution>

                                                      </executions>

                                            </plugin>

                                            <plugin>

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

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

                                                      <version>2.9</version>

                                                      <configuration>

                                                                <skipTests>true</skipTests>

                                                      </configuration>

                                            </plugin>

                                  </plugins>

                        </build>

                        <profiles>

                                  <profile>

                                            <id>Local</id>

                                            <properties>

                                                      <arquillian.host.url>localhost</arquillian.host.url>

                                                      <arquillian.host.port>8085</arquillian.host.port>

                                                      <arquillian.server.profile>default</arquillian.server.profile>

                                                      <arquillian.db.username>esp_testng_owner</arquillian.db.username>

                                                      <arquillian.db.password>esp_testng_owner</arquillian.db.password>

                                                      <arquillian.db.schema>esp_testng_owner</arquillian.db.schema>

                                                      <arquillian.db.url>xxxxxx</arquillian.db.url>

                                                      <project.id>1</project.id>

                                                      <projectGroup.id>1</projectGroup.id>

                                                      <project.code>xxxxxx</project.code>

                                                      <partner.id>1</partner.id>

                                                      <Schema.Location>http://localhost:8085/test/schemas</Schema.Location>

                                            </properties>

                                            <build>

                                                      <testResources>

                                                                <testResource>

                                                                          <directory>src/test/resources</directory>

                                                                          <filtering>true</filtering>

                                                                </testResource>

                                                      </testResources>

                                                      <plugins>

                                                                <plugin>

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

                                                                          <artifactId>maven-resources-plugin</artifactId>

                                                                          <version>2.5</version>

                                                                          <executions>

                                                                                    <execution>

                                                                                              <phase>validate</phase>

                                                                                              <goals>

                                                                                                        <goal>copy-resources</goal>

                                                                                              </goals>

                                                                                              <configuration>

                                                                                                        <outputDirectory>${basedir}/src/test/resources

                                                                                                        </outputDirectory>

                                                                                                        <resources>

                                                                                                                  <resource>

                                                                                                                            <directory>${basedir}/src/test/config</directory>

                                                                                                                            <filtering>true</filtering>

                                                                                                                  </resource>

                                                                                                        </resources>

                                                                                              </configuration>

                                                                                    </execution>

                                                                          </executions>

                                                                </plugin>

                                                                <plugin>

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

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

                                                                          <version>2.9</version>

                                                                          <configuration>

                                                                                    <systemPropertyVariables>

                                                                                              <java.security.auth.login.config>src/test/config/auth.conf</java.security.auth.login.config>

                                                                                    </systemPropertyVariables>

                                                                                    <skipTests>false</skipTests>

                                                                          </configuration>

                                                                </plugin>

                                                                <plugin>

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

                                                                          <artifactId>maven-antrun-plugin</artifactId>

                                                                          <executions>

                                                                                    <execution>

                                                                                              <id>test1ex</id>

                                                                                              <phase>initialize</phase>

                                                                                              <goals>

                                                                                                        <goal>run</goal>

                                                                                              </goals>

                                                                                              <configuration>

                                                                                                        <tasks>

                                                                                                                  <echo>:Local-ECHO:</echo>

                                                                                                        </tasks>

                                                                                              </configuration>

                                                                                    </execution>

                                                                          </executions>

                                                                </plugin>

                                                      </plugins>

                                            </build>

                                            <dependencies>

                                                      <dependency>

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

                                                                <artifactId>arquillian-jbossas-remote-5.1</artifactId>

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

                                                      </dependency>

                                                                                    <dependency>

                                            <groupId>org.jboss.jbossas</groupId>

                                            <artifactId>jboss-as-client</artifactId>

                                            <version>5.1.0.GA</version>

                                            <type>pom</type>

                                  </dependency>

                                  <dependency>

                                            <groupId>org.jboss.jbossas</groupId>

                                            <artifactId>jboss-as-profileservice-client</artifactId>

                                            <version>6.0.0.Final</version>

                                            <type>pom</type>

                                  </dependency>

                                            </dependencies>

                                  </profile>

                        </profiles>

              </project>

               

               

               

               

               

              my arquillian.xml

               

              <?xml version="1.0"?>

              <arquillian xmlns="http://jboss.com/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"

                        xmlns:jboss="urn:arq:org.jboss.arquillian.container.jbossas.remote_5_1">

               

               

                        <engine>

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

                 </engine>

               

               

                        <container qualifier="jboss-eap-5.1" default="true">

                                  <configuration>

                                            <property name="providerUrl">jnp://${arquillian.host.url}:1099</property>

                                            <property name="urlPkgPrefix">org.jboss.naming:org.jnp.interfaces</property>

                                            <property name="contextFactory">org.jboss.security.jndi.LoginInitialContextFactory</property>

                                            <property name="host">${arquillian.host.url}</property>

                                            <property name="port">${arquillian.host.port}</property>

                                            <property name="profileName">${arquillian.server.profile}</property>

                                  </configuration>

                                  <protocol type="Servlet 2.5">

                                            <configuration>

                                                      <property name="host">${arquillian.host.url}</property>

                                                      <property name="port">${arquillian.host.port}</property>

                                                      <property name="profileName">${arquillian.server.profile}</property>

                                            </configuration>

                                  </protocol>

                        </container>

              </arquillian>

               

               

               

               

              my auth.conf file

               

              jmx-console {

                  org.jboss.security.ClientLoginModule required;

              };

               

               

               

               

              Log file

               

              Running com.pearson.XXXXXXXXXX

              Nov 30, 2012 4:16:14 PM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

              INFO: Could not read active container configuration: null

              log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation).

              log4j:WARN Please initialize the log4j system properly.