Not having tried this since I don't use JBoss, here is my thought. The only
difference between putting it in the main tomcat classpath and putting it in
WEB-INF/lib is the class loader that is used (javas versus tomcats).  Since
I have quite successfully used tomcats in WEB-INF/lib, I am guessing that
maybe there is something a little but different about the jar file. Maybe
you should try to unjar the package, and then rejar it yourself using no
compression and no fancy options (or just leave it unjarred in the
WEB-INF/classes).

Hope this helps,
Paul

-----Original Message-----
From: Rick Horowitz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 1:00 PM
To: [EMAIL PROTECTED]
Subject: Re: TOMCAT3.2 BUG


You're not alone with this problem.  I was just involved in a couple of
threads on this subject in the JBoss Users mailing list, but everyone who
participated seems to have the same problem.  Here's a link to one thread:
http://www.mail-archive.com/[email protected]/msg09704.html

I finally worked around the problem by putting everything that would
normally be in WEB-INF/lib and WEB-INF/classes into the main Tomcat
classpath.  This works, but I'd still like to find out what the problem
is...Tomcat? JBoss?, or something else.

Possibly confounding factors in my setup include using JBuilder 4.0 to run
both Tomcat and JBoss, and am using Struts.  Don't know if these could be
affecting the outcome at all because I haven't tried a different setup
without them.

Thanks for any help anyone can provide.

Rick

At 05:11 PM 1/27/01 +0000, you wrote:
>I am integrating Apache Web server, Tomcat and Jboss (EJB container).
>Tomcat is running out of Apache process using mod_jk adapter. Tomcat is
>working fine for serving normal servlets and jsp. I deployed EJB on jBoss
>and accessed that by creating one java client application, it worked all
>right. Now when i want to access that EJB through Servlet, it is giving
>problems. I copied all the libraries required for client (ejb.jar,
>jnp-client.jar, jboss-client.jar and jta-spec.jar) to WEB-INF/lib, servlet
>and other helping classes to WEB-INF/classes. Now when i access the
>Servlet it gives " Cannot instantiate class: org.jnp.interf
>aces.NamingContextFactory. Root exception is
>java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory"
>Though this class is available in jnp-client.jar library which is in
>WEB-INF/lib directory. As per Tomcat documentation, Tomcat will include
>all jar files from WEB-INF/lib/ to classpath, but it is not working here.
>When i copied that the suppored client library files, jnp-client.jar etc
>... to TOMCAT_HOME/lib, it started working. This shows that
>WEB-INF/lib/*.jar are not included in classpath.
>HELP??????????????????????????
>
>
>
>
>
>
>_____________________________________________________
>Chat with your friends as soon as they come online. Get Rediff Bol at
>http://bol.rediff.com
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

--------------------
Rick Horowitz


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to