Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Reloadable Servlet?

John Blanco

2003-08-13

Replies:

 This is one heck of a crach course. :) OK, I found my
way through the public_html problem...but now I have a
question. I want my Servlet to be reloadable. But,
when I recompile and make a minor change (changing the
printed string), I get the dumb that follows below in
my logs and a 503 return error.

 If I go to TomCat Manager and Stop and then Start (not
Reload) my Servlet, everything works again until I
recompile and change. My question is...does my
Servlet need to explicitly support a reload?

2003-08-12 23:23:27 StandardContext[/HelloWorld]:
Reloading this Context has started
2003-08-12 23:23:27 WebappLoader[/HelloWorld]:
Reloading checks are enabled for this Context
2003-08-12 23:23:27
StandardWrapper[/HelloWorld:org.apache.catalina.INVOKER.HelloWorld]:
Marking servlet org.apache.catalina.INVOKER.HelloWorld
as unavailable
2003-08-12 23:23:27 StandardContext[/HelloWorld]:
Servlet /HelloWorld threw load() exception
javax.servlet.ServletException: Wrapper cannot find
servlet class HelloWorld or a class it depends on
    at
org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:891)
    at
org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:823)
    at
org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3421)
    at
org.apache.catalina.core.StandardContext.reload (StandardContext.java:2568)
    at
org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoader.java:1369)
    at java.lang.Thread.run (Thread.java:534)
----- Root Cause -----
java.lang.ClassNotFoundException: HelloWorld
    at
org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1444)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1289)
    at
org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:885)
    at
org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:823)
    at
org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3421)
    at
org.apache.catalina.core.StandardContext.reload (StandardContext.java:2568)
    at
org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(WebappLoader.java:1369)
    at java.lang.Thread.run (Thread.java:534)




--
 - John Blanco
 - Code Guru @ Rapture In Venice
 - http://members.bbnow.net/jblanco

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.