You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/04 23:01:55 UTC

DO NOT REPLY [Bug 16783] New: - stop and start ( restart) application

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16783>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16783

stop and start ( restart) application

           Summary: stop and start ( restart) application
           Product: Struts
           Version: 1.1 Beta 3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: rogernell@yahoo.com


Restarting a struts application fails.

Environment:
  JBoss 3.0.3 with Jetty 
  Java SDK 1.4.1

Notes
  1) Please also see bug #10026 - manager/stop and manager/remove, it sounds 
similar, but under Tomcat.
     http://issues.apache.org/bugzilla/show_bug.cgi?id=10026

  2) I'm SWAGging, but could this be a ActionServlet.destroy() not cleaning up 
or a class loader leaving remnants behind?

To reproduce
1. In JBoss, deploy struts sample application. Copy struts-example.war to
the %JBOSS_HOME%\server\default\deploy directory.

2. Start JBoss.
3. Navigate with web browser to http://localhost:8080/struts-example
4. Click on the first link on web page entitled 'Register with...'.
5. Use the JBoss console and stop and start the application.
   http://localhost:8080/jmx-console, search for and click link containing
    'context=/struts-example'. Click stop, backup and click start.
6. Repeat steps 3 & 4
7. Error on console and log file below.


16:50:12,043 WARN  [jbossweb] WARNING: Exception for /struts-example/editRegistr
ation.do;JSESSIONID=c1tgs9kljozv?action=Create
java.lang.ClassCastException
        at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServ
let.java:847)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
2)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:284)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
77)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:544)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
        at org.mortbay.http.HttpServer.service(HttpServer.java:875)
        at org.jboss.jetty.Jetty.service(Jetty.java:541)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
200)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
        at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
        at java.lang.Thread.run(Thread.java:536)


   
6.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org