1 Reply Latest reply on Apr 12, 2003 2:11 PM by chanomie

    Struts Redeploy ClassCastException on RequestProcessor

    chanomie Newbie

      I'm having a problem redeploying my EAR file which seems like a potential Classloader problem with jBoss, but looking for help.

      My EAR file contains the Struts.jar along with an application WAR. The MANIFEST.MF in the WAR has the Class-Path set to include the struts.jar

      I startup jBoss and deploy my application by copying the EAR file into the deploy directory. Everything works great.

      Then I redeploy the application by copying a new version of the EAR file over the old one. The application appears to deploy okay. The only line that looks suspect is:
      18:27:11,118 WARN [DeploymentInfo] Not deleting localUrl, it is null or not a copy: file:/C:/javadev/jboss-3.0.6_tomcat-4.1.18/server/default/tm
      p/deploy/server/default/deploy/globalwar.ear/25.globalwar.ear-contents/globalwar.jar

      Then, the first time I post to an Action after the redeploy I get the following error:
      18:29:15,477 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
      javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class org.apache.struts.action.RequestProcessor: java.lang.ClassCastExc
      eption
      at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:857)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

      Advice?

      -jdr