Tomcat Help

Chong Yu Meng chongym at cymulacrum.net
Fri Aug 4 16:24:14 UTC 2006


On Fri, 2006-08-04 at 08:57 -0700, Ryan Ollerenshaw wrote:

> so why is this not my classpath at run time??

IIRC, Tomcat resets the classpath when it starts up, so it does not
matter what you put in your system classpath or even if you tweak the
startup.sh. I could be wrong though, since it has been years (literally)
since I touched Tomcat. 

But if you want your JAR file to be in the classpath, there are two
directories that I seem to recall where you can place the file:

<tomcat-directory>/webapps/<servlet-name>/WEB-INF/classes/
<tomcat-directory>/common/lib/

But it would help if you could answer the following questions:

1. What is the URL that you key into the browser location bar to access
the servlet? This is VERY important, because most problems come from the
location and the mapping of the servlet.
2. What is the current location for your JAR file?
3. Does the web application get loaded at all? What are the errors in
catalina.out when you startup Tomcat? You can check if the web
application even exists in Tomcat by accessing the Manager web
application (if you installed it). 


-- 
Pascal Chong 
email:  chongym at cymulacrum.net 
web:    http://cymulacrum.net
pgp:    http://cymulacrum.net/pgp/cymulacrum.asc

"La science ne connaît pas de frontière parce que la connaissance
appartient à l’humanité. et que c’est la flamme qui illumine le monde."

-- Louis Pasteur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060805/3ce248d8/attachment-0001.sig>


More information about the fedora-list mailing list