tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kimberly Better <kbet...@us.oracle.com>
Subject Re: jars in ../WEB-INF/lib not found by servlets
Date Thu, 11 May 2000 17:41:01 GMT
I agree..... but, unfortunately, I haven't had any luck around this one.

--kim

Steven Maring wrote:

> Well, yes, I do that for other things, but I thought the idea behind the lib
> directory is that the jars would be automatically loaded into the JVM.
>
> My thought is, if I am deploying this as a war file, I'd like to not require
> the person doing the deploying to have to modify the CLASSPATH that Tomcat
> uses.
>
> -----Original Message-----
> From: Kimberly Better [mailto:kbetter@us.oracle.com]
> Sent: Thursday, May 11, 2000 11:41 AM
> To: tomcat-user@jakarta.apache.org; Steven.Maring@trcinc.com
> Subject: Re: jars in ../WEB-INF/lib not found by servlets
>
> Steven Maring wrote:
>
> > This is probably an easy one.
> >
> > I have some servlets in WEBAPP/WEB-INF/classes that need the classes in a
> > jar file inside WEBAPP/WEB-INF/lib.  They complain that they cannot find
> the
> > classes in the jar file.  Do I need to explicitly list the name of the jar
> > file somewhere?
>
> You need to specify in Tomcat.bat all of the jar files that your classes
> will
> use. I use the following jar files, and I have to define these lines in
> Tomcat.bat:
>
> set
> miJars=.\lib\mxtj20.jar;.\lib\dpext20.jar;.\lib\mxloc20.jar;.\lib\classes12.
> zip;.\lib\xml4j_util.jar
>
> set appClassPath=.\classes;%miJars%;%appJars%
> set cp=%CLASSPATH%
> set CLASSPATH=%appClassPath%;%sysJars%
>
> where .\ assumes that I am in the c:\tomcat directory. You might want to
> explicity put
> Tomcat\WEBAPP\WEB-INF\lib\youJarFile.jar
>
> >
> >
> > What am I missing?
> >
> > I know about the tomcat-dev mailing list archive, but is there one for
> > tomcat-user?
> >
> > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> > |  Steve Maring
> > |  Web Application Engineer
> > |  Technical Resource Connection, Inc.
> > |  smaring@trcinc.com
> > |  813-891-6084 x4323
> > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> >
> > --------------------------------------------------------------------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
> Hope this helps. :-)
>
> --kim
>
> o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
> Kimberly R. Better
> Associate Sales Consultant, Spatial & New Media Solutions
>
> Oracle Corporation
> 1910 Oracle Way, Reston, VA 20190
> Phone: 703-364-8061
> Fax:   703-364-3045
> cell:  703-362-1324
> Email: kbetter@us.oracle.com
> o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message