Hi ALl,

exact same problem(i've attached it below). Looks like it is for embedded
and non-embedded versions. Temporary workaround by placing in the Tomcat
startup classpath.


Lionel

Follow up:

Rick is accurate. There is something weird going on with Tomcat. It is not
picking up the jars located in the /WEB-INF/lib directory at all! This is
Tomcat 3.2.1 which I downloaded 3 days ago. Looking at their examples none
have the /lib directory. Did anyone every get it work on 3.2.b7? Maybe a
tomcat bug.


This is the example that is on the jboss site. There are 2 versions. The
Manual is the one that suggests u place it in the Tomcat classpath(works)
and to ther HTML one specifys to place in WEB-INF/lib(does not work).
According to Servlet API 2.2, both techniques should work.

Note that I don't even bother with the WAR file. I just use the directory
structure.

Lionel

----- Original Message -----
From: "Lionel Siau" <[EMAIL PROTECTED]>
To: "jBoss" <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 8:01 AM
Subject: Re: [jBoss-User] Problem configuring Tomcat3.2.1 to talk tojboss on
other vm/mach ine


> Hi Rick,
>
> i've just completed my test of separate JVMs for Jboss (2.0 Final) and
> Tomcat 3.2.1 using the examples. I couldn't phantom why the example was
> putting the EJB client jar in the tomcat classpath. I left it as that.
> After reading your message, I think I will go back and retry the 'proper'
> approach as u have outlined. The jar should go into the WEB-INF/lib
> directory.
>
> This is indeed mysterious but logically the fault should be at the tomcat
> end rather than JBoss no? After all, it is a JNDI lookup.
>
>
> Lionel
>
> ----- Original Message -----
> From: "Rick Horowitz" <[EMAIL PROTECTED]>
> To: "jBoss" <[EMAIL PROTECTED]>
> Sent: Saturday, January 27, 2001 7:19 AM
> Subject: Re: [jBoss-User] Problem configuring Tomcat3.2.1 to talk tojboss
on
> other vm/mach ine
>
>
> > I have given up and decided to just put all my servlet, Struts, and EJB
> > interface classes into a single JAR file that I put on the system
> classpath
> > instead of in the WAR files WEB-INF/classes and lib directories.  This
> just
> > required some changes to my ANT build script so is not a big deal, but I
> am
> > still very curious why this will not work...
> >
> > Specifically, for those new to this thread, the problem is as follows:
> >
> > Tomcat talking with JBoss using separate VMs for Tomcat and JBoss.
> >
> > I'm getting a class not found exception for class
> > org.jnp.interfaces.NamingContextFactory when trying to do an
> > InitialContext.lookup() on an EJB home interface.  This works fine when
> all
> > my Tomcat stuff is put on the system classpath, which is not a problem
> > during my development and testing, but *should* work when putting my
> > classes in the WEB-INF/classes and /lib directories of the WAR file.
> >
> > Has anyone gotten this to work these files in their WAR file?
> >
> > Rick Horowitz

----- Original Message -----
From: "oliver2, andy" <[EMAIL PROTECTED]>
To: "'shiva nand tripathi '" <[EMAIL PROTECTED]>; "oliver2, andy"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 28, 2001 8:38 AM
Subject: [jBoss-User] RE: RE: TOMCAT3.2 BUG


>
> Thats really unfortunate.  You should post this in the
> bugtracker.  It seems that this is a common problem.
> I'd post it in the jakarta/tomcat one as JBOSS seems
> to be a bit less communicative.
>
> On that subject (and somewhat off topic) what all exact
> files does one need to deploy an EJB.  I keep getting
> some obnoxious error about deployment.cfg not existing
> (right after it deleted it).  I had a jar and a ejb-jar.xml
> in its META-INF and no luck.
>
>
> -----Original Message-----
> From: shiva nand tripathi
> To: [EMAIL PROTECTED]
> Sent: 1/27/01 1:03 PM
> Subject: Re: RE: TOMCAT3.2  BUG
>
> Thanks for replying.
> Yes i am sure that this is not problem of file permissions. File is
> availbale to all for reading and writing.
>
> shivanand
>
>
>
> ------------- Original Message --------------
> "oliver2, andy" <[EMAIL PROTECTED]> wrote:
> To:'shiva nand tripathi ' <[EMAIL PROTECTED]>,
> "'[EMAIL PROTECTED] <[EMAIL PROTECTED]> '"
>  <[EMAIL PROTECTED]>
> From:"oliver2, andy" <[EMAIL PROTECTED]>
> Date:Sat, 27 Jan 2001 12:27:33 -0500
> Subject: RE: TOMCAT3.2  BUG
>
>  are you sure the file had the proper permissions for
> the user tomcat is running as?
>
> -----Original Message-----
> From: shiva nand tripathi
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Sent: 1/27/01 12:11 PM
> Subject: TOMCAT3.2  BUG
>
> 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]
>
> _____________________________________________________
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
>


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

Reply via email to