Hi Pid,

> -----Original Message-----
> From: Pid [mailto:p...@pidster.com]
> Sent: Thursday, July 07, 2011 10:24 PM
> 
> Are you using parallel deployment or are you replacing the existing
> application when it's redeployed.
> 
> Maybe the old context is the one throwing the error.
> 
> 
> p

I don't use parallel deployment.
To redeploy a webapp, I just replace the old war file with a new one and wait 
for Tomcat to redeploy it.

The logs on redeploy were this:

07.07.2011 00:24:09 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context []
07.07.2011 00:24:09 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:10 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:11 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:12 org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SCHWERWIEGEND: The web application [] is still processing a request that has 
yet to finish. This is very likely to create a memory leak. You can control the 
time allowed for requests to finish by using the unloadDelay attribute of the 
standard Context implementation.
07.07.2011 00:24:12 org.apache.catalina.startup.ExpandWar deleteDir
SCHWERWIEGEND: [D:\tomcat7\work\Catalina\bildergalerie.pleier-it.de\_] could 
not be completely deleted. The presence of the remaining files may cause 
problems
07.07.2011 00:24:12 org.apache.catalina.startup.ExpandWar delete
SCHWERWIEGEND: [D:\tomcat7\work\Catalina\bildergalerie.pleier-it.de\_] could 
not be completely deleted. The presence of the remaining files may cause 
problems
07.07.2011 00:24:12 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
07.07.2011 00:24:17 org.apache.catalina.connector.CoyoteAdapter service
SCHWERWIEGEND: An exception or error occurred in the container during the 
request processing
java.lang.NullPointerException
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:287)
...

("SCHWERWIEGEND" should read like "SEVERE")

You're right, it could have something to do with the old context since it was 
still waiting for a request to finish. Maybe I can reproduce the NPE if I make 
a servlet that takes a long time to finish the request, to see what was the 
original exception that has been suppressed by the NPE.


Regards,

Konstantin Preißer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to