I am currently developing a pilot
EJB project in IBM RAD6 Websphere6.0 and
testing out a remote EJB invocation. I have developed a web project that runs on websphere6.0 and my ejb works fine. I also deployed that same project on another machine ( both windows machines ) and ran remotely via the web project ( test
jsp calling a
servlet that invokes the EJB home interface ) and all works fine.
Now I want to test that same code from a JVM inside rad6 using the same default eclipse JRE instead of a web container. So I create a simple
java program which duplicates the same ejb invocation, I have added all the jars required one at a time onthe classpath till I can get to the point where I get this error
Exception in
thread
Exception in thread "P=372710:O=0:CT" java.lang.NoClassDefFoundError: com/ibm/WsnBootstrap/WsnNameServiceHelper
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1161)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:727)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:650)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:497)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:113)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:428)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at ejbs.Test1AccessBean.getHome(Test1AccessBean.java:118)
at ejbs.Test1AccessBean.ejbHome(Test1AccessBean.java:48)
at ejbs.Test1AccessBean.instantiateEJB(Test1AccessBean.java:76)
at ejbs.Test1AccessBean.doSomething(Test1AccessBean.java:86)
at ejbTestJava.main(ejbTestJava.java:24)
I have tried my best to find out which jar I am missing. I went through 'every' jar that is on my web classpath trying to find which jar has this package but I could not find it.
I also looked this up on the net but to no avail. Does anyone know where this class is and how come this is not documented anyhere ?
Your help will be greatly appreciated.