EJB adapter error: testConnFail


Configuring EJB 1.2 adapter on webM6.0.1/win2k/Sun JDK 1.3.1_07. Have configured JBoss3.0.4/Tomcat4.1.12 and in IS Admin have created connection with following:
Alias name: JBoss3
Initial Context Factory: org.jnp.interfaces.NamingContextFactory
Provider URL: jnp://localhost:1099
JNDI Server Type: JBoss

JBoss starts successfully but when testing EJB adapter connection in IS Admin, the following error pop-up:
testConnFail: AliasTestImpl.test - found null or closed connection.

Error log in c:\webM6\IntegrationServer\packages\WmEJB\log is:
2003-06-17 15:25:41,734 [HTTP Handler] ERROR - [BASEJBA.1000.0014]MyConnection.open - ‘new InitialContext’ threw this: type(java.lang.ClassCastException), msg(iaik.asn1.structures.Name)
2003-06-17 15:25:41,834 [HTTP Handler] ERROR - AliasTestImpl.test - found null or closed connection

Any thoughts???
Cheers, John

Solution is to ensure JBoss and Integration Server are using same version of JVM. Ended up pointing IS (server.bat) to use Sun JDK 1.3.1_07, which I had installed separately, rather than the JVM shipped with webM. Ensure JBoss is also using this by pointing correctly in run.bat file (done by pointing correctly in System’s PATH variable (on Win2k).