Jimmy Ray wrote:
I was trying to follow the hello bean example. I have
openejb 0.9.2 deployed with Tomcat 5.0.28 On Win2k
with Sun JDK 1.4.2. I have tested the openejb config
Ok and the bean is deployed OK with the "Hello" JNDI
name. This is running on my local desktop machine, so
I am using the 127.0.0.1 IP.
When I try to invoke it from a app executing in my
Eclipse debugger, I get the error:
javax.naming.NoInitialContextException: Cannot
instantiate class:
org.openejb.client.RemoteInitialContextFactory [Root
exception is java.lang.ClassNotFoundException:
org.openejb.client.RemoteInitialContextFactory]
Hi,
It happens when Tomcat (classloaders) can't access the class and load
it. Since you're using the version that has some issues with
classloading I'd recommend building OpenEJB from sources. See
http://www.openejb.org/cvs.html for up-to-date information on how to
check out the sources and build OpenEJB.
Let us know how it goes.
Jacek