War inside of ear doesn't seem to redeploy correctly
jstrohm Oct 6, 2002 7:13 PMCurrently running JBoss-3.0.1 (using jetty).
I have a simple app that let's a user login. Stores a user object in the session and retrieves information for the user to see.
This is what happens:
*Start Jboss
*Deploy ear (with included war), everything deploys fine.
*Hit website and login.
*Try to view user information and it works fine.
*Redeploy ear file (no change to code). Deploys fine.
*Hit website and login
*Try to view user information and it dies.
It get's the user object from the session and when casting it to User from Object it gives me an exception (see below for stack trace).
*Stop Jboss
*Restart Jboss
*Hit website and login.
*Try to view user information and it works fine.
---------------------------------------------
Any ideas on what may be causing this?
Stack Trace:
17:09:38,779 INFO [jbossweb] successfully deployed file:/usr/java/jboss/server/default/tmp/deploy/server/default/deploy/noxl.ear/64.noxl.ear-contents/noxl.war to
17:09:38,780 INFO [MainDeployer] Deployed package: file:/usr/java/jboss/server/default/deploy/noxl.ear
17:09:49,970 INFO [jbossweb] action: Processing a POST for /logon
17:09:49,972 INFO [jbossweb] action: Looking for ActionForm bean under attribute 'logonForm'
17:09:49,974 INFO [jbossweb] action: Creating new ActionForm instance of class 'noxl.webapp.LogonForm'
17:09:49,975 INFO [jbossweb] action: Storing instance under attribute 'logonForm' in scope 'request'
17:09:49,977 INFO [jbossweb] action: Populating bean properties from this request
17:09:49,980 INFO [jbossweb] action: Validating input form properties
17:09:49,981 INFO [jbossweb] action: No errors detected, accepting input
17:09:49,983 INFO [jbossweb] action: Looking for Action instance for class noxl.webapp.LogonAction
17:09:49,984 INFO [jbossweb] action: Double checking for Action instance already there
17:09:49,986 INFO [jbossweb] action: Creating new Action instance
17:09:49,988 INFO [jbossweb] action: LogonAction: User 'Jack Strohm' logged on in session 4o1rcnvlq3hp
17:09:57,537 WARN [jbossweb] WARNING: Exception for /viewReport.jsp
java.lang.ClassCastException: noxl.webapp.User
at org.apache.jsp.viewReport$jsp._jspService(viewReport$jsp.java:136)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
at org.mortbay.http.HttpServer.service(HttpServer.java:795)
at org.jboss.jetty.Jetty.service(Jetty.java:531)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
at java.lang.Thread.run(Thread.java:536)