13 Replies Latest reply on Aug 31, 2011 6:10 AM by Shane Bryzak

    Seam 3 + Maven 3

    Richard Ombati Newbie

      Hallo,
      I have generated a simple project using the Seam 3 maven archtype and i have successfully deployed the app to jboss 6. Unfortunately, on trying to run the Arquillian test using



      mvn test -Parq-jbossas-remote



      i get the error below:



      [ERROR] Failed to execute goal on project iv: Could not resolve dependencies for project foo: Failed to collect dependencies for [org.hibernate:hibernate-jpamodelgen:jar:1.
      1.1.Final (provided), org.jboss.seam.solder:seam-solder:jar:3.0.0.Final (compile), org.hibernate:hibernate-validator:jar:4.1.0.Final (provided), junit:junit:jar:4.8.1 (test), org.jboss.arquillian:arqu
      illian-junit:jar:1.0.0.Alpha5 (test), org.jboss.arquillian.container:arquillian-jbossas-remote-6:jar:1.0.0.Alpha5 (test), org.jboss.spec:jboss-javaee-6.0:pom:1.0.0.Final (provided), org.jboss.jbossas:
      jboss-as-profileservice-client:pom:6.0.0.Final (test), org.jboss.deployers:jboss-deployers-client-spi:jar:2.2.0.GA (test)]: Failed to read artifact descriptor for apache-xerces:xml-apis:jar:2.7.1: Cou
      ld not transfer artifact apache-xerces:xml-apis:pom:2.7.1 from/to repository.jboss.org (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/apache-xerces/xml-api
      s/2.7.1/xml-apis-2.7.1.pom -> [Help 1]
      [ERROR]



      any ideas?


        • 1. Re: Seam 3 + Maven 3
          Jason Porter Master

          You have the completely wrong repo. Should be https://repository.jboss.org/nexus/content/groups/public/ This changed happened back in April 2010.

          • 2. Re: Seam 3 + Maven 3
            Richard Ombati Newbie

            Thanks for the hint.Based on this:My Link , i modified my pom.xml adding this:


            <id>jboss-deprecated-repository-group</id>
                  <name>JBoss Deprecated Maven Repository Group</name>
                  <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
                  <releases>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                  </releases>
                  <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                  </snapshots>
                </repository>



            The test now actually compile.
            Unfortunately, am getting another error concerning arquillian:




            Running xxxTest
            Jun 9, 2011 8:46:06 AM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration
            INFO: Could not read active container configuration: null



            Any ideas what might be amiss?
            Regards




            • 3. Re: Seam 3 + Maven 3
              Jason Porter Master

              You're using JBoss AS6 remote?


              You may also want to post on the arquillian forums for some more directed help.

              • 4. Re: Seam 3 + Maven 3
                Richard Ombati Newbie

                Thanks for the quick reply,
                Yes am using JBoss AS 6 remote;


                here is my pom.xml




                <?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>com.mokua</groupId>
                    <artifactId>iv</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <packaging>war</packaging>
                
                    <name>Java EE 6 webapp project</name>
                    <description>A starter Java EE 6 webapp project for use on Java EE 6-compliant application servers, 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>
                        <!-- To specify the JBoss AS directory the "Maven way", set the jboss.home property in an active profile in $HOME/.m2/settings.xml -->
                        <!-- By default, we assign it to the value of the JBOSS_HOME envrionment variable -->
                        <jboss.home>${env.JBOSS_HOME}</jboss.home>
                        <jboss.domain>default</jboss.domain>
                        <arquillian.version>1.0.0.Alpha5</arquillian.version>
                        <jboss-javaee6-spec.version>1.0.0.Final</jboss-javaee6-spec.version>
                    </properties>
                
                    <repositories>
                        <!-- The JBoss Community public repository is a composite repository of several major repositories -->
                        <!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->
                        <!-- At the time of writing, Arquillian and the JBoss Java EE specification POMs are only in the JBoss Community public 
                            repository (not Maven central) -->
                        <repository>
                            <id>jboss-public-repository</id>
                            <name>JBoss Repository</name>
                            <url>https://repository.jboss.org/nexus/content/groups/public</url>
                            <!-- These optional flags are designed to speed up your builds by reducing remote server calls -->
                            <releases>
                                <updatePolicy>never</updatePolicy>
                            </releases>
                            <snapshots>
                                <updatePolicy>daily</updatePolicy>
                            </snapshots>
                        </repository>
                        
                         <repository>
                              <id>jboss-deprecated-repository-group</id>
                              <name>JBoss Deprecated Maven Repository Group</name>
                              <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
                              <releases>
                                <enabled>true</enabled>
                                <updatePolicy>never</updatePolicy>
                              </releases>
                              <snapshots>
                                <enabled>true</enabled>
                                <updatePolicy>never</updatePolicy>
                              </snapshots>
                            </repository>  
                    </repositories>
                
                    <pluginRepositories>
                        <pluginRepository>
                            <id>jboss-public-repository</id>
                            <name>JBoss Repository</name>
                            <url>https://repository.jboss.org/nexus/content/groups/public</url>
                            <!-- These optional flags are designed to speed up your builds by reducing remote server calls -->
                            <releases>
                                <updatePolicy>never</updatePolicy>
                            </releases>
                            <snapshots>
                                <!-- Set to true to fix error in which Maven cannot find org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-6-SNAPSHOT -->
                                <updatePolicy>daily</updatePolicy>
                            </snapshots>
                        </pluginRepository>
                    </pluginRepositories>
                
                    <dependencies>
                        <!-- 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>
                            <!-- Excluded because it's provided by the Java EE 6 dependencies -->
                            <exclusions>
                                <exclusion>
                                    <groupId>org.hibernate.javax.persistence</groupId>
                                    <artifactId>hibernate-jpa-2.0-api</artifactId>
                                </exclusion>
                            </exclusions>
                        </dependency>
                
                        <!-- Seam Solder provides convenient, portable CDI extensions such as an injectable logger -->
                        <dependency>
                            <groupId>org.jboss.seam.solder</groupId>
                            <artifactId>seam-solder</artifactId>
                            <version>3.0.0.Final</version>
                        </dependency>
                
                        <!-- JSR-303 (Bean Validation) Implementation -->
                        <!-- Provides portable constraints such as @Email -->
                        <!-- Hibernate Validator is the only JSR-303 implementation at the moment, so we can assume it's provided -->
                        <dependency>
                            <groupId>org.hibernate</groupId>
                            <artifactId>hibernate-validator</artifactId>
                            <version>4.1.0.Final</version>
                            <scope>provided</scope>
                            <exclusions>
                                <exclusion>
                                    <groupId>org.slf4j</groupId>
                                    <artifactId>slf4j-api</artifactId>
                                </exclusion>
                            </exclusions>
                        </dependency>
                
                        <!-- Needed for running tests (you may also use TestNG) -->
                        <dependency>
                            <groupId>junit</groupId>
                            <artifactId>junit</artifactId>
                            <version>4.8.1</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</groupId>
                            <artifactId>arquillian-junit</artifactId>
                            <version>${arquillian.version}</version>
                            <scope>test</scope>
                        </dependency>
                    </dependencies>
                
                    <build>
                        <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>
                        </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>
                            <dependencies>
                                <!-- Java EE 6 API dependency -->
                                <!-- This one dependency imports all APIs available for a Java EE 6.0 application -->
                                <dependency>
                                    <groupId>org.jboss.spec</groupId>
                                    <artifactId>jboss-javaee-6.0</artifactId>
                                    <version>${jboss-javaee6-spec.version}</version>
                                    <type>pom</type>
                                    <scope>provided</scope>
                                </dependency>
                            </dependencies>
                            <build>
                                <plugins>
                                    <plugin>
                                        <artifactId>maven-surefire-plugin</artifactId>
                                        <version>2.4.3</version>
                                        <configuration>
                                            <skip>true</skip>
                                        </configuration>
                                    </plugin>
                                    <!-- Optional plugin deploys your war to a local JBoss AS container -->
                                    <!-- To use, set the JBOSS_HOME environment variable (or jboss.home in $HOME/.m2/settings.xml) and run:
                                         mvn package jboss:hard-deploy -->
                                    <plugin>
                                        <groupId>org.codehaus.mojo</groupId>
                                        <artifactId>jboss-maven-plugin</artifactId>
                                        <version>1.4.1</version>
                                        <configuration>
                                            <jbossHome>${jboss.home}</jbossHome>
                                            <serverName>${jboss.domain}</serverName>
                                            <fileNames>
                                                <!-- JNDI DataSource that connects to in-memory HSQLDB to demonstrate JPA -->
                                                <fileName>src/main/resources-jbossas/default-ds.xml</fileName>
                                                <!-- DataSource needs to go before the application -->
                                                <fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
                                            </fileNames>
                                        </configuration>
                                    </plugin>
                                </plugins>
                            </build>
                        </profile>
                
                        <profile>
                            <!-- An optional Arquillian testing profile that executes tests in GlassFish Embedded -->
                            <!-- Tests are broken under Arquillian 1.0.0.Alpha5 since sun-resources.xml is not supported -->
                            <!-- Run with: mvn clean test -Parq-glassfish-embedded -->
                            <id>arq-glassfish-embedded</id>
                            <dependencies>
                                <dependency>
                                    <groupId>org.jboss.arquillian.container</groupId>
                                    <artifactId>arquillian-glassfish-embedded-3.1</artifactId>
                                    <version>${arquillian.version}</version>
                                    <scope>test</scope>
                                </dependency>
                                <!-- This imports the Java EE 6 runtime libraries provided by GlassFish Embedded -->
                                <dependency>
                                    <groupId>org.glassfish.extras</groupId>
                                    <artifactId>glassfish-embedded-all</artifactId>
                                    <version>3.1</version>
                                    <scope>provided</scope>
                                </dependency>
                            </dependencies>
                            <build>
                                <testResources>
                                    <testResource>
                                        <directory>src/test/resources</directory>
                                    </testResource>
                                    <!-- Overrides default configuration to use alternate persistence.xml with eclipselink settings and declare 
                                        a Glassfish Datasource -->
                                    <!-- Used by Arquillian -->
                                    <testResource>
                                        <directory>src/test/resources-glassfish-embedded</directory>
                                    </testResource>
                                </testResources>
                                <plugins>
                                    <plugin>
                                        <artifactId>maven-surefire-plugin</artifactId>
                                        <!-- don't use version 2.5 as it creates seperate test suites per class -->
                                        <version>2.4.3</version>
                                        <configuration>
                                            <systemProperties>
                                                <!-- This optional property fixes an annoyance with Glassfish that puts derby.log in the project 
                                                    root -->
                                                <property>
                                                    <name>derby.stream.error.file</name>
                                                    <!-- If you save the log in target it is less likely to get committed in your project -->
                                                    <value>target/derby.log</value>
                                                </property>
                                            </systemProperties>
                                        </configuration>
                                    </plugin>
                                </plugins>
                            </build>
                        </profile>
                
                        <profile>
                            <!-- 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.arquillian.container</groupId>
                                    <artifactId>arquillian-jbossas-remote-6</artifactId>
                                    <version>${arquillian.version}</version>
                                    <scope>test</scope>
                                </dependency>
                                <!-- Java EE 6 API dependency -->
                                <!-- This one dependency imports all APIs available for a Java EE 6.0 application -->
                                <dependency>
                                    <groupId>org.jboss.spec</groupId>
                                    <artifactId>jboss-javaee-6.0</artifactId>
                                    <version>${jboss-javaee6-spec.version}</version>
                                    <type>pom</type>
                                    <scope>provided</scope>
                                </dependency>
                                <!-- needed for org.jnp.interfaces.NamingContextFactory -->
                                <dependency>
                                    <groupId>org.jboss.jbossas</groupId>
                                    <artifactId>jboss-as-profileservice-client</artifactId>
                                    <version>6.0.0.Final</version>
                                    <type>pom</type>
                                    <scope>test</scope>
                                </dependency>
                                <!-- jboss-deployers-client-spi provides deployment exception class -->
                                <dependency>
                                    <groupId>org.jboss.deployers</groupId>
                                    <artifactId>jboss-deployers-client-spi</artifactId>
                                    <version>2.2.0.GA</version>
                                    <scope>test</scope>
                                </dependency>
                            </dependencies>
                            <build>
                                <testResources>
                                    <testResource>
                                        <directory>src/test/resources</directory>
                                    </testResource>
                                    <!-- Overrides default configuration to use alternate persistence.xml with default JBoss AS data source -->
                                    <!-- Used by Arquillian -->
                                    <testResource>
                                        <directory>src/test/resources-jbossas</directory>
                                    </testResource>
                                </testResources>
                            </build>
                        </profile>
                
                        <profile>
                            <id>arq-weld-ee-embedded</id>
                            <dependencies>
                                <dependency>
                                    <groupId>org.jboss.arquillian.container</groupId>
                                    <artifactId>arquillian-weld-ee-embedded-1.1</artifactId>
                                    <version>${arquillian.version}</version>
                                    <scope>test</scope>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.spec</groupId>
                                    <artifactId>jboss-javaee-6.0</artifactId>
                                    <version>${jboss-javaee6-spec.version}</version>
                                    <type>pom</type>
                                    <scope>provided</scope>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.weld</groupId>
                                    <artifactId>weld-core</artifactId>
                                    <scope>test</scope>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.weld</groupId>
                                    <artifactId>weld-api</artifactId>
                                    <scope>test</scope>
                                </dependency>
                                <dependency>
                                    <groupId>org.slf4j</groupId>
                                    <artifactId>slf4j-simple</artifactId>
                                    <scope>test</scope>
                                </dependency>
                            </dependencies>
                          <dependencyManagement>
                                <dependencies>
                                    <dependency>
                                        <groupId>org.jboss.weld</groupId>
                                        <artifactId>weld-core-bom</artifactId>
                                        <version>1.1.1.Final</version>
                                        <type>pom</type>
                                        <scope>import</scope>
                                    </dependency>
                                </dependencies>
                            </dependencyManagement>
                        </profile>
                    </profiles>
                </project>
                




                and arquillian.xml




                <?xml version="1.0" encoding="UTF-8"?>
                <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">
                
                   <!-- Uncomment to have test archives exported to the file system for inspection -->
                   <!--  -->
                   <engine>
                       <property name="deploymentExportPath">target/</property>
                   </engine>
                  
                
                   <!-- Example configuration for a remote JBoss AS instance -->
                   <container qualifier="jbossas-remote" default="true">
                       <property name="httpPort">8080</property>
                       
                   </container>
                   
                   <!-- Required configuration for an embedded GlassFish instance -->
                   <container qualifier="glassfish-embedded">
                       <property name="bindHttpPort">7070</property>
                       <property name="sunResourcesXml">src/test/resources-glassfish-embedded/sun-resources.xml</property>
                   </container>
                
                </arquillian>




                Then am running the project on cmd line using:




                mvn clean test -Parq-jbossas-remote






                • 5. Re: Seam 3 + Maven 3
                  Richard Ombati Newbie

                  on running the test using Eclipse; i get teh following stacktrace on junit console:




                  MemberRegistrationTest
                  com.mokua.iv.test.MemberRegistrationTest
                  initializationError(com.mokua.iv.test.MemberRegistrationTest)
                  java.lang.RuntimeException: Could not create and startup manager
                       at org.jboss.arquillian.impl.core.ManagerImpl.<init>(ManagerImpl.java:95)
                       at org.jboss.arquillian.impl.core.ManagerBuilder.create(ManagerBuilder.java:74)
                       at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:97)
                       at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:67)
                       at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:82)
                       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                       at java.lang.reflect.Constructor.newInstance(Unknown Source)
                       at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
                       at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
                       at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
                       at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
                       at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
                       at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
                       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:32)
                       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
                       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:41)
                       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:31)
                       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
                       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: org.jboss.arquillian.impl.domain.ContainerCreationException: Could not create Container jbossas-remote
                       at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:78)
                       at org.jboss.arquillian.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:67)
                       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.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                       at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                       at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                       at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                       at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                       at org.jboss.arquillian.impl.core.ManagerImpl.bindAndFire(ManagerImpl.java:221)
                       at org.jboss.arquillian.impl.core.InstanceImpl.set(InstanceImpl.java:74)
                       at org.jboss.arquillian.impl.bootstrap.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)
                       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.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
                       at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
                       at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
                       at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
                       at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
                       at org.jboss.arquillian.impl.core.ManagerImpl.<init>(ManagerImpl.java:91)
                       ... 22 more
                  Caused by: java.lang.IllegalStateException: No implementation found for org.jboss.arquillian.spi.client.container.DeployableContainer, please check your classpath
                       at org.jboss.arquillian.impl.DynamicServiceLoader.verifyOnlyOneOrSameImplementation(DynamicServiceLoader.java:134)
                       at org.jboss.arquillian.impl.DynamicServiceLoader.onlyOne(DynamicServiceLoader.java:92)
                       at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:69)
                       ... 45 more
                  
                  



                  Regards

                  • 6. Re: Seam 3 + Maven 3
                    Jason Porter Master

                    Do you have the container started?


                    Do you have the jndi.properties with the correct settings in test/resources?

                    • 7. Re: Seam 3 + Maven 3
                      Richard Ombati Newbie

                      Hallo,
                      thanks,i really appreciate your quick replies.


                      under src/test/resources, i have jndi.properties with the contents:




                      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces 
                      java.naming.provider.url=jnp://127.0.0.1:1099 
                      



                      (also tried putting the jndi.properties file under src/test/resources-jbossas)


                      And yes, jboss is running, but unfortunately am still getting the same stacktrace.


                      Regards

                      • 8. Re: Seam 3 + Maven 3
                        Jason Porter Master

                        Unless someone has a better idea, I'd suggest going to the Arquillian forums and posting there (if you haven't done so already), you can also try #jbosstesting on freenode and as Aslak himself.

                        • 9. Re: Seam 3 + Maven 3
                          Jason Porter Master

                          I spoke with Aslak. In eclipse you need to set the profile you want to use for your tests, you're probably running the default profile in eclipse. During cli, unless there's more what you saw is just INFO because you didn't pass -Djbossas-remote but the JBoss remote container is listed as the default container, so you're using that one anyway. Both Aslak and I think -Parq-jbossas-remote should be working, based on what you've told us thus far.

                          • 10. Re: Seam 3 + Maven 3
                            Richard Ombati Newbie

                            Thanks alot for the help.


                            Am running the tests both on  the cmd line and also using eclipse.
                            Also, as you suggested i have posted the question also on the Arquillan list
                            My Link


                            Regards

                            • 11. Re: Seam 3 + Maven 3
                              Richard Ombati Newbie

                              Hi .
                              For completeness the solution is :
                              1) Running on the command line, you need to provide the -Darquillian.launch  argumnet
                              e.g


                              mvn clean test -Parq-jbossas-remote -Darquillian.launch=jbossas-remote



                              2)To run in eclipse follow this link


                              Regards

                              • 12. Re: Seam 3 + Maven 3
                                Luca Cavagnoli Newbie

                                Why do projects such as Seam 2 and Arquillian have depencendies that requre a DEPRECATED repository to be satisfied?

                                • 13. Re: Seam 3 + Maven 3
                                  Shane Bryzak Master

                                  Luca Cavagnoli wrote on Aug 31, 2011 04:46:


                                  Why do projects such as Seam 2 and Arquillian have depencendies that requre a DEPRECATED repository to be satisfied?


                                  Which dependencies are you referring to?  (and I'm assuming you mean Seam 3, not Seam 2)