4 Replies Latest reply on Nov 5, 2002 10:08 AM by Stratos Nikolaidis

    ClassCastException upon redeploy of war but not jar

    Mike Stephen Newbie

      Hi all,

      I am running JBoss3.0.0 with Tomcat4.0.3 on Windows.

      I have a jar full of ejbs and a war full of jsps/servlets.
      They run very happily together until I hot redeploy the
      war file. Then if I try to request a jsp page that worked
      fine before the redeploy, I get an exception page showing
      a ClassCastException :

      java.lang.ClassCastException: com.xxx.proxy.ClientProxy
      at com.xxx.taglib.GetClientPropTag.doStartTag(GetClientPropTag.java:29)
      at org.apache.jsp.index$jsp._jspService(index$jsp.java:124)
      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:202)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      The war file references the jar file in its manifest file.

      If I redeploy the jar first and then the war, there are no
      I used to have them all in an ear, but would like to be
      able to redeploy just the war, as it changes much more
      frequently than the jar, and the jar is shared between
      a few developers all developing their own wars that
      access the ejbs inside it.

      Is anyone else able to redeploy successfully using jars
      and wars rather than an ear?

      Any thoughts would be appreciated.