Hello,
I'm a struts-newbie, but have worked with WebObjects/Model2 for many years.
So I hope I'm not asking a dumb question here ;-)
I've got a simple struts action, and a simple ejb. They work fine until
I try to access the bean on iAS, from Tomcat.
I want to access the bean via a jndi.properties file:
java.naming.factory.initial=javax.naming.InitialContext
#java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
-- this works when I run in JDeveloper
java.naming.provider.url=ormi://brasil/clientes-bean
java.naming.security.principal=*****
java.naming.security.credentials=*****
I put ejb.jar in $CATALINA_HOME/common/lib
I cannot get a connection to the iAS - bean server.
Tomcat is failing to load EJBHome. The tomcat locahost shows this exception:
2002-05-04 22:24:18 oreilly: Error creating Action instance for path '/login',
class name 'com.oreilly.actions.LoginAction'
java.lang.NoClassDefFoundError: javax/ejb/EJBHome
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
...
...
1) What naming factory do I use, since the oracle naming factory is not
available on Tomcat?
2) I think this is part of my problem, what else?
Can anybody clue me in?
Thanks
Stan