You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Venkatesh Babu <ve...@yahoo.com> on 2006/08/11 09:35:43 UTC

Problem with redeploying webapp in tomcat

Hello All,

We have an automated script that builds our webapp
(.war file) and deploys this app on our remote
webserver, using the remove and install facilities
provided by tomcat manager. We run this script daily
at a particular scheduled time.

The script creates the application war file, send the
war to the remote server via ftp and then redeploy's
the webapp using ant targets:

<get
src="${app.deploy.manageurl}/stop?path=${app.deploy.path}"
dest="${LOG4J_LOGFILE}" username="${tomcat.user.name}"
password="${tomcat.user.password}"/>   --- First stop
the previous running app

<get
src="${app.deploy.manageurl}/remove?path=${app.deploy.path}"
dest="${LOG4J_LOGFILE}" username="${tomcat.user.name}"
password="${tomcat.user.password}"/>   ---
Remove/uninstall the webapp

<get
src="${app.deploy.manageurl}/install?path=${app.deploy.path}&amp;war=jar:file:${ftp.absolutedir.loc}/${core.war}!/"
dest="${LOG4J_LOGFILE}" username="${tomcat.user.name}"
password="${tomcat.user.password}"/>   --- Install
from the war file sent over ftp


My problem is that - This process went fine for a few
days, but now I'm getting OutOfMemoryException when
performing this process on tomcat server. I've pasted
the stack trace of the exception below:

Can anybody help me and let me know why am I getting
this OutOfMemory Exception, and how to fix this
exception?

Thank you,
Venkatesh

java.lang.OutOfMemoryError


	at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
	at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
	at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem with redeploying webapp in tomcat

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Venkatesh Babu wrote:
> My problem is that - This process went fine for a few
> days, but now I'm getting OutOfMemoryException when
> performing this process on tomcat server. I've pasted
> the stack trace of the exception below:
>   
It's a well known problem. In some situations Tomcat is unable to free 
webapp's classloader. It's not a Tomcat problem, it's a general 
Java/classloader problem. The easiest solution is to schedule a Tomcat 
restart.

Read the following links:

http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669
http://forum.springframework.org/archive/index.php/t-21383.html


-- 
Mikolaj Rydzewski <mi...@ceti.pl>