aspose file tools*
The moose likes Tomcat and the fly likes web.xml and class loader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
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://aspose.com/file-tools
 
subject: web.xml and class loader