You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Julie Zhuo (JIRA)" <be...@incubator.apache.org> on 2004/11/09 23:31:24 UTC

[jira] Created: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Steve Tocco (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55256 ]
     
Steve Tocco commented on BEEHIVE-70:
------------------------------------

Has anyone looked at this in regards to this issue?

http://issues.apache.org/bugzilla/show_bug.cgi?id=26372

It claims 
"The problem has long been fixed by adding LogManager.shutdown() the
contextDestroyed() method of a servlet context listener.  I have mentioned this
before, but for some reason no one takes notice.  I'm writing it here so that at
least there is a reference.
Jake"

Does this situation apply to beehive?

> 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


[jira] Resolved: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Steve Hanson (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=history ]
     
Steve Hanson resolved BEEHIVE-70:
---------------------------------

      Assign To:     (was: Steve Hanson)
     Resolution: Fixed
    Fix Version: V1Alpha

I changed "build.webapp redeploy" to "undeploy build.webapp deploy" thoughout the page flow tutorial.  Didn't explain why to the user: seems best to just let them succeed without giving them a big explaination of the bullet they just dodged.  The fix is now live at 
http://incubator.apache.org/beehive/pageflow/tutorial_pageflow.html

> 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
>      Fix For: V1Alpha

>
> 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


[jira] Assigned: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Steve Tocco (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=history ]

Steve Tocco reassigned BEEHIVE-70:
----------------------------------

    Assign To: Steve Hanson

Steve, looks like a problem with Tomcat is leading us to avoid redeploy.  Julie Zhuo has provided a one line ant command to undeploy/build/deploy to minimize the risk of encountering this issue.  Please update the tutorial to reflect this new command in place of redeploy statements.

> 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
>     Assignee: Steve Hanson

>
> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55254 ]
     
Eddie O'Neil commented on BEEHIVE-70:
-------------------------------------

I believe that this is a Tomcat issue and not something that we can fix in NetUI.

Once you've failed a redeploy, you'll need to undeploy and then deploy.  Thing is that when a webapp gets into the funky, redeploy-failed state, Tomcat thinks it's still a valid context path even though it's not URL hittable.  

This forces the undeploy (to clear out the registration of the context path) and then a deploy.

Hope that helps.

> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55298 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

More Update:

My bad that I have been reusing the source files to overwrite it ended up have the source older than the compiled file. That explains the action could not be found problem. Now, it does not look as scary as it sounds :). So, I imagine with that undeploy/build.webapp/deploy work around things will work all right. But I will verify very quickly. 

> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55310 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

Actually putting all the three targets together as below works like a charm. So, let's put them together in the doc. Thanks.

  -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
  -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial 
  -Dcontext.path=pageflow_tutorial 
  undeploy
  build.webapp 
  deploy 


> 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


[jira] Closed: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Steve Tocco (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=history ]
     
Steve Tocco closed BEEHIVE-70:
------------------------------


verified by Julie Zhuo, closing on her behalf as she does not have Jira rights.

If we need to open another issue for this post v1Alpha, lets do that in separate bug.

> 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
>      Fix For: V1Alpha

>
> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55299 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

Update:

Everything works fine with the work around not using redeploy target. So, I am going to recommand a doc change on this and close this issue. May be we want to mention the Tomcat issue that we choose not to use the redeploy, but that is not that important.

> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55258 ]
     
Eddie O'Neil commented on BEEHIVE-70:
-------------------------------------

Yep -- at first glance, that looks similar.  



> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55297 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

Update:

1. The memory issue could be random, could not reproduce with a few consecutive undeploy/build.webapp/deploy.

2. The tag exception I mentioned, I need to clearify. It is actually a runtime action not veing found problem and that is being consistant with/without the Global.app.

3. FWIW, I did not encounter this problem last week when I ran through the page flow tutorial.

> 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


[jira] Commented: (BEEHIVE-70) Webapp Redeploy Encounters exception java.lang.ThreadDeath

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-70?page=comments#action_55309 ]
     
Julie Zhuo commented on BEEHIVE-70:
-----------------------------------

Just to be clear on the work around, we should replace in the page flow tutorial where ever we have
_____________________
ant 
  -f %BEEHIVE_HOME%\ant\buildWebapp.xml  
  -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
  -Dcontext.path=pageflow_tutorial
  build.webapp
  redeploy
_____________________

with 
________________________
ant 
  -f %BEEHIVE_HOME%\ant\buildWebapp.xml  
  -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
  -Dcontext.path=pageflow_tutorial
  undeploy

  -f %BEEHIVE_HOME%\ant\buildWebapp.xml  
  -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
  -Dcontext.path=pageflow_tutorial
  build.webapp
  deploy
________________________

The reason I want to do it separate is that the undeploy usualy take little time. so just to be safe.

Also, we might want to mention the warning message that might occur that metioned in BEEHIVE-72,

************************************************
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
*************************************************

Also, we may want to say that we are using undeploy/build/deploy instead of redeploy to avoid Tomcat5 ThreadDeath problem.

> 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