[Opensource] Tomcat and DefaultServlet

Vincent Gogan vincent.gogan at goganinc.com
Wed Oct 22 10:21:44 PDT 2003


Sorry if this is a little off topic but you never know...

Anyway, I was wondering if anyone has had any success in customizing
Tomcat's
DefaultServlet, especially working with Expresso. I tried what I thought was
the obvious thing to do but didn't get very far.

That is,
	- I copied the source for DefaultServlet
	- Got it to compile
	- Modified the global web.xml
	- Fiddled with the classpath for Tomcat (added
webapps/blah/WEB-INF/classes)

The result is "an exception during startup processing" 

	Caused by: java.lang.NoClassDefFoundError: 
			org/apache/struts/tiles/ActionComponentServlet

Any ideas on a next step? Am I screwing things up by making such a change to
the classpath? Should I just be moving some .class files or a jar file to
either
Server/lib or common/lib? I know there is some disconnect in that I want the
DefaultServlet to be a part of a single context.

My goal, if anyone has any other solutions, is to have more precise control
over
how URL's map to the application. 

Thanks,

Vincent





More information about the Opensource mailing list