Seam unit test can't connect to JBoss4.0.5GA
Posted
by user240423
on Stack Overflow
See other posts from Stack Overflow
or by user240423
Published on 2009-12-29T19:54:44Z
Indexed on
2010/03/28
16:23 UTC
Read the original article
Hit count: 402
Does anybody know how to connect with JBoss4.0.5GA in Seam2.2.0GA unit test? I'm using Seam2.2.0GA with the embeded JBoss to run the unit test, the module needs to call old JBoss server (EJB2, because the vendor locked in JCA has to deploy on old JBoss). it's typical seam test case, and I can't get it connect to JBoss4.0.5GA by using jbossall-client.jar from JBoss4.0.5GA. so far I tested the embeded JBoss can only working with JBoss5.X server.
with JBoss4.2.3GA, it report:
[testng] java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
[testng] java.net.SocketException: end of file
[testng] at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
[testng] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:679)
[testng] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[testng] at org.jboss.remoting.Client.invoke(Client.java:1634)
[testng] at org.jboss.remoting.Client.invoke(Client.java:548)
This is the best result I could get (JBoss5.1.0GA jbossall-client.jar call JBoss4.2.3GA server in the embeded JBoss env), here is the ant script:
<testng classpathref="build.test.classpath" outputDir="${target.test-reports.dir}" haltOnfailure="true">
<jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true" />
<jvmarg line="-Dorg.jboss.j2ee.Serialization=true" />
<!--
<jvmarg line="-Djboss.remoting.pre_2_0_compatible=true" />
-->
<jvmarg line="-Djboss.jndi.url=jnp://localhost:1099" />
<xmlfileset dir="src/test/java" includes="${ant.project.name}-testsuite.xml" />
</testng>
Can anybody help?
© Stack Overflow or respective owner