Hi,
I want to
test an
ejb with
junit I use WSAD to create an EAR with 2 modules:
- an ejb
- a test client which use junit
I start the server and when i launch the client with Application Client Launcher and i get the next exception:
1) testKeysSessionGet(test.KeysSessionTest)
java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/GIOPVersionException
at com.ibm.CORBA.iiop.ConnectionTable.createConnection(ConnectionTable.java:142)
at com.ibm.CORBA.iiop.ConnectionTable.get(ConnectionTable.java:527)
at com.ibm.CORBA.iiop.ConnectionTable.get(ConnectionTable.java:413)
at com.ibm.CORBA.iiop.GIOPImpl.createRequest(GIOPImpl.java:152)
at com.ibm.CORBA.iiop.GIOPImpl.createRequest(GIOPImpl.java:133)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1080)
at com.ibm.CORBA.iiop.InitialNamingClient.resolve(InitialNamingClient.java:372)
at com.ibm.CORBA.iiop.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:591)
at com.ibm.CORBA.iiop.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:355)
at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:1802)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:590)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:352)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:227)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:135)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:179)
at test.KeysSessionTest.testKeysSessionGet(KeysSessionTest.java:28)
at test.KeysSessionTest.main(KeysSessionTest.java:61)
, line 28 in my KeysSessionTest is :
InitialContext ctx = new InitialContext();
Thanks,
Florins