[ 
http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55294 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

This is indead a Tomcat issue, see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26372

But the bug in Tomcat did not offer a real solution, and I also proved that 
restart Tomcat did not do the fix as some folks indicating in the bug thread.

It looks I could avoid the ThreadDeath problem by not using redeploy target. Do 
undeploy first and build.webapp deploy after.

Even with the work around above, it still seems having some issue with the 
accumulative build. After the second time I build, I get tag exception. when I 
go in remove the build artifacts, do undeploy build.webapp deploy again, 
everthing will work. But if I contitue do another undeploy build.webapp deploy 
without removing the artifacts, it cause tomcat Memory issue, see stack trace 
at the end(Notice machine just rebooted before this).This may needs to be a 
separate issue. If you agree I will file it separately. Again, I am still look 
into this some more as it appears it may not cover all possibilities. I will 
update this issue when I figure some thing new.

***************************
2004-11-10 05:28:09 StandardContext[/manager]Manager: undeploy: Undeploying web 
application at '/pageflow_tutorial'
2004-11-10 05:28:09 StandardContext[/manager]Manager: Undeploying document base 
D:\beehive-dist\project\pageflow_tutorial
2004-11-10 05:28:20 StandardContext[/manager]Manager: install: Installing web 
application at '/pageflow_tutorial' from 
'file://d:\beehive-dist\project\pageflow_tutorial'
2004-11-10 05:31:28 StandardContext[/manager]Manager: undeploy: Undeploying web 
application at '/pageflow_tutorial'
2004-11-10 05:31:28 StandardContext[/manager]Manager: Undeploying document base 
D:\beehive-dist\project\pageflow_tutorial
2004-11-10 05:31:42 StandardContext[/manager]Manager: install: Installing web 
application at '/pageflow_tutorial' from 
'file://d:\beehive-dist\project\pageflow_tutorial'
2004-11-10 05:31:46 StandardContext[/pageflow_tutorial]StandardWrapper.Throwable
java.lang.OutOfMemoryError: PermGen space

2004-11-10 05:31:46 StandardContext[/pageflow_tutorial]Servlet 
/pageflow_tutorial threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet action threw 
exception
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1061)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:922)
        at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:320)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
        at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
        at java.lang.Thread.run(Thread.java:595)
----- Root Cause -----
java.lang.OutOfMemoryError: PermGen space

> Webapp Redeploy Encounters exception java.lang.ThreadDeath
> ----------------------------------------------------------
>
>          Key: BEEHIVE-70
>          URL: http://nagoya.apache.org/jira/browse/BEEHIVE-70
>      Project: Beehive
>         Type: Bug
>   Components: Documentation, NetUI
>     Versions: V1Alpha
>     Reporter: Julie Zhuo

>
> I am following the pageflow tutorial and do the build.webapp redeploy, I 
> often encounters the following.
> ************************************
>      [echo] ========== Compile Page Flows ==========
>       [apt] Compiling 2 source files to 
> D:\beehive-dist\project\pageflow_tutoria
> l\WEB-INF\classes
>      [echo] Copy all .properties files
>      [echo] Copy all .xml files
> redeploy:
> [tomcatreload] FAIL - Encountered exception java.lang.ThreadDeath
> BUILD FAILED
> D:\beehive-dist\apache-beehive-incubating-1.0-alpha-snapshot\ant\runTomcatCore.x
> ml:39: FAIL - Encountered exception java.lang.ThreadDeath
> Total time: 6 seconds
> *************************************************
> Once this happens, if I try to build.webapp redeploy again it always give me 
> the following,
> ************************************************************
> D:\beehive-dist\apache-beehive-incubating-1.0-alpha-snapshot>ant -f 
> ant\buildWeb
> app.xml -Dwebapp.dir=D:\beehive-dist\project\pageflow_tutorial 
> -Dcontext.path=pa
> geflow_tutorial build.webapp redeploy
> Buildfile: ant\buildWebapp.xml
> build.webapp:
>    [delete] Deleting directory 
> D:\beehive-dist\project\pageflow_tutorial\WEB-INF
> \.tmpbeansrc
> [xmlbeanbuild] Could not find any xsd or wsdl files to process.
>      [echo] ========== Compile Java sources in WEB-INF/src, including 
> controls =
> =========
>      [echo] netui-compiler.jar: 
> D:\beehive-dist\apache-beehive-incubating-1.0-al
> pha-snapshot/lib/netui/beehive-netui-compiler.jar
>      [echo] controls.jar: 
> D:\beehive-dist\apache-beehive-incubating-1.0-alpha-sn
> apshot/lib/controls/controls.jar
>     [mkdir] Created dir: 
> D:\beehive-dist\project\pageflow_tutorial\WEB-INF\.tmpb
> eansrc
>      [echo] ========== Compile Page Flows ==========
>       [apt] Compiling 1 source file to 
> D:\beehive-dist\project\pageflow_tutorial
> \WEB-INF\classes
>       [apt] 
> D:\beehive-dist\project\pageflow_tutorial\WEB-INF\.tmpbeansrc\WEB-IN
> F\src\global\Global.java:28: warning: File "/Controller.jpf" could not be 
> found
> in the web application.
>       [apt]     public Forward home()
>       [apt]                    ^
>       [apt] 1 warning
>      [echo] Copy all .properties files
>      [echo] Copy all .xml files
> redeploy:
> [tomcatreload] OK - Reloaded application at context path /pageflow_tutorial
> **************************************************************************
> Not so sure if this is Tomcat issue. Will do some research on this and see if 
> we can have a work around. Or find out what the issue is and have our 
> document mention that.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to