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 15:41:39 GMT
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



Mime
View raw message