Hi: Just a blind shot (I've not used Struts yet).
Do these load-on-startup servlets require anything to be initialized in struts ? Does Struts require initialization by the web app developer ? If so, perhaps you need to somehow ensure that such initialization takes place before you load your servlets ? Separately, what exactly do you mean by "reloads cause the errors" ? Does everything work fine when Tomcat is started ? If this is the case, then perhaps you need to try maintaining webapp specific copies of files that you're using from common/lib - stuff like struts, for e.g. Perhaps this is a problem with Classloader hierarchies. -- Sriram --- Christopher Schultz <[EMAIL PROTECTED]> wrote: > All, > I'm not sure exactly when this started happening, but now reloads cause > all my load-on-startup servlets classes to cause the following errors: > > 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis > threw load() exception > javax.servlet.ServletException: Wrapper cannot find servlet class > org.apache.struts.action.ActionServlet or a class it depends on > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) > . > . > . > ----- Root Cause ----- > java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) > . > . > 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis > threw load() exception > javax.servlet.ServletException: Wrapper cannot find servlet class > org.childhealthcare.diagnosis.servlet.InitServlet or a class it depends on > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) > . > . > . > ----- Root Cause ----- > java.lang.ClassNotFoundException: > org.childhealthcare.diagnosis.servlet.InitServlet > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) > . > . > > > Pretty much one for each of the servlets that I have listed as > load-on-startup. I checked, and there's no overlap between what I have > in my web application's local lib directory and what's in > TOMCAT_HOME/common/lib. > > Does anyone have any ideas? > > I only started noticing this behavior this morning; I have been > switching over to Struts with Velocity-Tools, so those are the last two > libraries that I have added to my application. > > Otherwise, I'm not doing anything crazy. > > Thanks in advance for any help, > -chris > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
