-
1. Re: Arquillian and JBoss 7.1
aslak Dec 21, 2011 4:11 AM (in response to mandarbk)The Servlet Protocol is only used for Test execution. Startup verification is in AS7 done by connecting to the managementAddress:managementPort and asking it for it's state...
You only seeing this in Maven or? If so, which surefire version are you using ? (had some issues previously with surefire 2.9~ where it 'hangs' due to some console output pipe buffering gone wrong..)
-
2. Re: Arquillian and JBoss 7.1
mandarbk Dec 21, 2011 4:49 AM (in response to aslak)We have using surefire version 2.7.2.
Haven't really tried with TestNG as we have the evironment setup with Maven.Finally we need it working with maven.
Any idea how can we debug it further ?
-
3. Re: Arquillian and JBoss 7.1
aslak Dec 21, 2011 4:53 AM (in response to mandarbk)any luck with surefire 2.11 ?
-
4. Re: Arquillian and JBoss 7.1
mandarbk Dec 21, 2011 5:17 AM (in response to aslak)Not really. Problem still persists with Surefire 2.11.
Attaching the arquilian configuration. Let me know if you find any error in configuration.
-
arquillian.xml 1.0 KB
-
-
5. Re: Arquillian and JBoss 7.1
aslak Dec 21, 2011 8:02 AM (in response to mandarbk)You shouldn't need to set the Servlet 3.0 Protocol Configuration, that will be auto extracted from the management api. (and it's also wrong, it's pointing to the management api port, not the web port 8080)
But that shouldn't be related to the server not starting..
Do you have the console output / server.log ?
-
6. Re: Arquillian and JBoss 7.1
mandarbk Dec 21, 2011 9:20 AM (in response to aslak)There is absolutely nothing in the log for arquillian. The last line in the log indicates that a web context for application is established.
How can I enable logging so that I can get to see what arquillian is trying to do?
I have set the property "outputToConsole" to true but nothing appears on the console.
-
7. Re: Arquillian and JBoss 7.1
aslak Dec 21, 2011 10:12 AM (in response to mandarbk)which "web context for application" was established ?
nothing in any surefire test reports files?
can you post a stripped down version of your project so I can attempt to recreate the issue locally ?
-
8. Re: Arquillian and JBoss 7.1
mandarbk Dec 21, 2011 10:36 AM (in response to aslak)I have deployed my EAR on the application server against which all the system tests will be executed.
The tests will actually interact with the EJBs in EAR.
So "web-context" is for my application.
Tests are not executed at all, so no test-reports as well.
As per my understanding maven-arquillian works as follows(correct me if i am wrong)
1) Start JBoss
2) Once it receives the notification that the container is started, it will build the project create a Jar containing all the test classes.
3) Build an ear containing all the dependencies and the jar containing tests.
4) Deploy the test EAR to JBoss.
5) Start tests.
In my case, I am not able to proceed beyond step 1.
Looking at the log, I can see that the JBoss is started successfully.But then, everything just hangs.
No activity on the console and nothing in server.log.
Can you tell me, what is the safest versioning for following maven dependencies?
Current configuration:
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<version>7.0.2.Final</version>
<groupId>org.jboss.arquillian.protocol</groupId>
<artifactId>arquillian-protocol-servlet</artifactId>
<version>1.0.0.CR6</version>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<version>1.0.0.CR6</version>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version> -
9. Re: Arquillian and JBoss 7.1
mandarbk Dec 29, 2011 4:18 AM (in response to mandarbk)Hi Aslak,
I am still facing this issue.
Debugging further, i can see following messages in server.log. Looking at the arquillian's source code and the logs I am 100% sure that Arquillian is not able to identify that "server is started".
Is this an issue of Arquillian not being compatible with JBoss 7 Management API or vice-versa ?
09:08:45,180 TRACE [org.jboss.remoting.remote.server] (Remoting "ukesmandard1c:MANAGEMENT" read-1) Excluding mechanism GSSAPI because it is not in the allowed list
09:08:45,180 TRACE [org.jboss.remoting.remote] (Remoting "ukesmandard1c:MANAGEMENT" read-1) Sent message java.nio.HeapByteBuffer[pos=60 lim=60 cap=8192] (direct)
09:08:45,180 TRACE [org.jboss.remoting.remote] (Remoting "ukesmandard1c:MANAGEMENT" read-1) Flushed channel (direct)
09:08:45,181 TRACE [org.jboss.remoting.remote.server] (Remoting "ukesmandard1c:MANAGEMENT" read-1) Server received authentication request
09:08:45,181 TRACE [org.jboss.remoting.remote] (Remoting "ukesmandard1c:MANAGEMENT" read-1) Connection error detail: java.io.IOException: JBREM000201: Received invalid message on Remoting connection 3c38a5d7 to /127.0.0.1:49247
at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:374) [jboss-remoting-3.2.0.CR8.jar:3.2.0.CR8]
at org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial.handleEvent(ServerConnectionOpenListener.java:115) [jboss-remoting-3.2.0.CR8.jar:3.2.0.CR8]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.0.CR7.jar:3.0.0.CR7]
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:187) [xnio-api-3.0.0.CR7.jar:3.0.0.CR7]
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:101) [xnio-api-3.0.0.CR7.jar:3.0.0.CR7]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.0.CR7.jar:3.0.0.CR7]
at org.xnio.nio.NioHandle.run(NioHandle.java:90)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
-
10. Re: Arquillian and JBoss 7.1
mandarbk Dec 29, 2011 5:00 AM (in response to mandarbk)Finally..... Looks like it was a bug in "jboss-as-arquillian-container-managed".
Upgrading to 7.1.CR1 seem to have resolved the issue.
-
11. Re: Arquillian and JBoss 7.1
figwam Jan 3, 2012 9:41 AM (in response to mandarbk)Hi Mandar & Aslak,
i had absolutly the same problem as Mandar. Now I upgraded to:
- JBoss 7.1.0CR1b
- Aquillian core 1.0.0.CR7
- Arqullian JBoss AS managed 7.1.0.CR1b
and it works!