I have started with the Introductory examples from the reference.
I checkout the arquillian samples from svn repo as mention in the document.Also I have download JBOSS (jboss-18.104.22.16800721-M4) , unzipped it and started the server.When I ran the tests using :
mvn test -Pjbossas-remote-6
I got build failure :Tests run: 37, Failures: 15, Errors: 0, Skipped: 22
So I looked into the folders and modified the arquillian.xml to point to my JBOSS location and JDK location
Now again I ran those tests and still get the same result.When I checked the TestSuite.txt I found that arquillian complaints
about unable to connect to container as shown below.Please help.
Extract from TestSuite.txt
Tests run: 37, Failures: 15, Errors: 0, Skipped: 22, Time elapsed: 3.724 sec <<< FAILURE!
arquillianBeforeSuite(com.acme.jms.InjectionTestCase) Time elapsed: 0 sec <<< FAILURE!
org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.LifecycleException: Could not connect to container
Please find the attached TestSuite.txt.
TestSuite.txt.zip 2.1 K
do you have jndi.properties set as Arquillian connects to remote container through JMX?
Just to test your local AS6M4, you can try using as6-managed profile and let Arquillian start and stop container. Than you would need JBOSS-HOME configuration in POM or arquillian.xml.
Thanks for the reply.I didn't have anything explicitly set.When I checked out the examples from svn repo, I got the jndi.properties as well.It looks like:
I didnt understand what you said.Do you mean either one of jndi.properties and arquillian.xml is needed or the JBoss container configuration is needed only when we use AS6 managed container profile?
Anyway if that is the case why does the examples run against MS3 build with out any issues and not with MS4 build?Please kindly explain.
Please ignore my above comment about why the tests are running against MS3 and not against MS 4.
So now I understood.With managed profile we need to specify the JBOSS Home and other information.With Remote Profile, all we need is that the App server is up and running some where, Obvious by the name "remote".
Guess I played a lot with these profiles today.
Thanks for the help.
I've added two FAQs that hopefully will clarify these differences for other new users.