Hi ,
Recently I stopped the MyHttpServlet class implementing the
javax.servlet.SingleThreadModel, and servlets appear to reload okay now when
changing the class file.
Hopefully this helps someone.
Regards,
Mathew
--
Mathew Pole
Web Architect, Gerard Industries
email: mathew.pole@clipsal.com.au <mailto:mathew.pole@clipsal.com.au>
www: http://www.clipsal.com, http://www.clipsalmoeller.com.au,
http://www.aes-pl.com, www.tungali.com
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
-----Original Message-----
From: Mathew Pole
Sent: Wednesday, 4 September 2002 5:01 PM
To: tomcat-user@jakarta.apache.org
Subject: Internal Server Error when changing class file
Hi ,
During development I have defined the following context to enable reloading
of servlets when I change code:
<!-- Clipsal Context -->
<Context path="/clipsal" docBase="clipsal" debug="0"
reloadable="true" crossContext="true">
</Context>
Unfortunately every change to code generates a "HTTP Status 500 - Internal
Server Error", with the following stack trace:
java.lang.NullPointerException
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:678)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)
I'm running Apache Tomcat/4.1.10-LE-jdk14 on Windows 2000. On startup the
error "ServerLifecycleLIstener: createMBeans: MBeanException is reported,
but I'm under the impression that this is not important.
Does anyone have suggestions on how to fix this (if it is possible)?
Thanks,
Mathew
--
Mathew Pole
Web Architect, Gerard Industries
email: <mailto:mathew.pole@clipsal.com.au> mathew.pole@clipsal.com.au
www: <http://www.clipsal.com/> http://www.clipsal.com &
<http://www.custompress.com.au/> http://www.custompress.com.au
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|