2 Replies Latest reply on Nov 11, 2004 12:31 PM by mtb2ride

    Sporadic JSP compilation failures

    craigdberry

      Using JBoss 3.2.4, I am getting sporadic JSP compilation failures. There seems to be no rhyme or reason to when the JSPs will compile successfully and when they will fail; I can run successfully, shut down, clean out .../work and .../tmp, start jboss, and get the failure. Or not, the next time I try it. Sometimes redeploying my .ear helps, sometimes it doesn't. I'm at my wit's end; I can't imagine what state is determining success or failure, or where jboss could possibly be hiding that state if I remove .../work and .../tmp between runs.

      The specific compilation error always involves attempts by the generated jsp code to call my custom tags (some our own, some Struts, some others), claiming that the tag type doesn't match a javax.servlet.jsp.tagext.JspTag parameter. Here are two examples:

      C:\jboss\jboss-3.2.4\server\pbdev\work\jboss.web\localhost\app\org\apache\jsp\ClientLogin_jsp.java:112: _jspx_meth_pb_page_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.ClientLogin_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_pb_page_0(_jspx_th_html_html_0, _jspx_page_context))
      ^
      C:\jboss\jboss-3.2.4\server\pbdev\work\jboss.web\localhost\app\org\apache\jsp\ClientLogin_jsp.java:145: _jspx_meth_c_if_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.ClientLogin_jsp cannot be applied to (com.portblue.view.taglib.PageTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_c_if_0(_jspx_th_pb_page_0, _jspx_page_context))

      Obviously, the tag classes *do* implement JspTag, as verified by the fact that the whole thing does work more than half the time.

      This is driving me nuts, and threatening our project. Any help is greatly appreaciated!