Hi,
>
> 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.
>
There have been a lot of discussions on this list around this - and the
general consensus is that it doesn't work as it should (although I've
noticed an email on another list - turbine - that highlights a bug they've
found in Catalina/tomcat4 to do with classloaders - so hopefully this will
fix it).
The way I get it to work is to put all my applications jars (I have no code
outside of jars) including the jndi.properties onto the system classpath
before starting tomcat.
HTH,
Chris
================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and
are sent for the personal attention of the addressee. Although you may be the named
recipient, it may become apparent that this email and its contents are not intended
for you and an addressing error has been made. This email may include information that
is legally privileged and exempt from disclosure. If you have received this email in
error, please advise us immediately and delete this email and any attachments from
your computer system.Rabobank International is the trading name of Coöperatieve
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands.
Registered with the Registrar of Companies for England & Wales No. BR002630 and
regulated by the SFA for the conduct of investment business in the UK.
The presence of this footnote also confirms that this email has been automatically
checked by Rabobank International for the presence of computer viruses prior to it
being sent, however, no guarantee is given or implied that this email is virus free
upon delivery.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]