I'm trying to configure jBoss to work with Tomcat (separate JVMs). Well,
I've got a problem. I'm getting the following error:
javax.naming.CommunicationException. Root exception is [Tomcat]
java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome
This error occurs in the servlet when the object reference is looked up in
the JNDI context: Object ref = jndiContext.lookup("InterestBean");
The EJB works for the stand-alone (i.e. non-Tomcat) program. All evidence I
find on the web points to a bad classpath for Tomcat, everything I check
appears OK.
Here's what I've tried:
I've tried placing ejb.jar, jaas.jar, jboss-client.jar, jndi.jar,
jnp-client.jar, jta-spec1_0_1.jar, and the jar file containing my EJB in all
the various places for Tomcat (in the web app's WEB-INF/lib directory, in
Tomcat's /lib directory, adding them to the classpath in tomcat.bat, and
having the EJB in the web app's WEB-INF/classes directory, unjarred).
I've got a jndi.properties file (in the EJB jar file and/or the web app's
WEB-INF/classes directory) that looks like the following:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming
although it appears that the servlet sets the first two explicitly. And,
yes, the Tomcat server & the JBoss server are on the same machine.
I'm at wit's end. I have no idea why, with all of this, it's working from
the standalone program and not inside Tomcat. If anyone has any ideas, I'd
be grateful to hear them.
Thanks!
-dan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]