Also, if you're using Tomcat 1.4.27 then there's a bug which stops the reload from working properly. A hotfix is available from the jakarta website.
Dave > -----Original Message----- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 13, 2003 1:59 PM > To: Tomcat Users List > Subject: RE: Reloadable Servlet? > > > > Howdy, > Your servlet doesn't need to explicitly be "reloadable" but > your context > does. Set reloadable=true in your context definition. > > Yoav Shapira > Millennium ChemInformatics > > > >-----Original Message----- > >From: John Blanco [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, August 13, 2003 1:33 AM > >To: Tomcat Users List > >Subject: Reloadable Servlet? > > > > 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(Standard > Wrapper.ja > va:8 > >91) > > at > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper > .java:823) > > at > >org.apache.catalina.core.StandardContext.loadOnStartup(Standa > rdContext. > java > >:3421) > > at > >org.apache.catalina.core.StandardContext.reload(StandardConte > xt.java:25 > 68) > > at > >org.apache.catalina.loader.WebappLoader$WebappContextNotifier > .run(Webap > pLoa > >der.java:1369) > > at java.lang.Thread.run(Thread.java:534) > >----- Root Cause ----- > >java.lang.ClassNotFoundException: HelloWorld > > at > >org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp > ClassLoade > r.ja > >va:1444) > > at > >org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp > ClassLoade > r.ja > >va:1289) > > at > >org.apache.catalina.core.StandardWrapper.loadServlet(Standard > Wrapper.ja > va:8 > >85) > > at > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper > .java:823) > > at > >org.apache.catalina.core.StandardContext.loadOnStartup(Standa > rdContext. > java > >:3421) > > at > >org.apache.catalina.core.StandardContext.reload(StandardConte > xt.java:25 > 68) > > at > >org.apache.catalina.loader.WebappLoader$WebappContextNotifier > .run(Webap > pLoa > >der.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: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, > and may not be saved, copied, printed, disclosed or used by > anyone else. If you are not the(an) intended recipient, > please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
