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
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > List Help?: [EMAIL PROTECTED]
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]