Tomcat /WEB-INF/lib doesn't load JARs?

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
I was under the impression that by creating the standard /WEB-INF directory structure, CPanel/WHM's implementaiton of Tomcat would autoload the files under these directories, namely, under the /classes and /lib subdirectories.

I've gotten servlets to run just fine by uploading them into the /WEB-INF/classes directory under a user's account, as well as JSPs just about anywhere under thri public_html directory.

My ONLY problem is that JSPs/Servlets can't seem to access any of the JARs placed in /WEB-INF/lib. When you try importing classes from those JARs, Tomcat reports that the package is not found.

Has anyone gotten JARs to work properly?

Jaz
 

orca

Well-Known Member
Sep 23, 2002
75
0
156
Switzerland
I have the same problem...tried to upload the .jar files in various folders...no work.
 

masood

Well-Known Member
Jun 14, 2002
78
0
156
Yes, same problem here. May be we need to put something in web.xml? :p
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
Based on Tomcat docs, the JARs should be autoloaded without the need to enter anything into a web.xml file - it's supposed to be 'drop-and-go'.

Jaz
 

orca

Well-Known Member
Sep 23, 2002
75
0
156
Switzerland
[quote:3a53742349][i:3a53742349]Originally posted by jsteel[/i:3a53742349]

Based on Tomcat docs, the JARs should be autoloaded without the need to enter anything into a web.xml file - it's supposed to be 'drop-and-go'.

Jaz[/quote:3a53742349]

Well, that could be but here it doesn't do it.
 

xnull

Well-Known Member
Sep 9, 2001
156
0
316
Ours doesn't do it either. I have tried many different suggested folder structures for the java classes and jars and had my client try many settings in his script's config to point to them. None of this was successful and Burst gave up on my ticket requesting help with this.. We need java servlets, etc. to work properly but they do not. We've tried reinstalling tomcat as well with no luck.
 

daWeazy

Member
Jan 1, 2004
21
0
151
California
I am in the same boat. Mine wont work either Fedora Core 2 Latest Edge build.

This is starting to irriate me. When someone gets the solution to this problem, please post it.