jQuery in Action, 2nd edition
The moose likes Tomcat and the fly likes web.xml and class loader Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "web.xml and class loader" Watch "web.xml and class loader" New topic
Author

web.xml and class loader

Bill Goldsworthy
Greenhorn

Joined: Dec 21, 2004
Posts: 27
I'm trying to load a class when Tomcat starts up:

my web.xml:



The package and everything is OK I think because it was used elsewhere from the same location. It's being shared across webapps now and needs to be initialized beforehand. I'm getting this error but I receive text output in the console from the Foo class which is confusing to me.



Any advice?

Thanks
Bill


Increasingly, people seem to misinterpret complexity as sophistication, which is baffling - the incomprehensible should cause suspicion rather than admiration. Possibly this trend results from a mistaken belief that using a somewhat mysterious device confers an aura of power on the user. Niklaus Wirth
Bill Goldsworthy
Greenhorn

Joined: Dec 21, 2004
Posts: 27
Oh, forgot to post the simple servlet:



Thanks!
Bill
Bill Goldsworthy
Greenhorn

Joined: Dec 21, 2004
Posts: 27
Figured out the problem after reviewing the difference between the shared/
folder and the common/ folder.

After moving the class file for the servlet to common/ the issues were resolved.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: web.xml and class loader
 
Similar Threads
Problem deploying my first Struts example
Deploy Spring Application to tomcat
java.IO.EOFException when deploying war file
JasperException: Module 'null' not found.
TOMCAT can't find classes in /WEB-INF/classes