2 Replies Latest reply on Dec 24, 2013 10:43 AM by Otávio Garcia

    JSPX tags doesn't work with Wildfly CR1

    Otávio Garcia Newbie

      When I migrate an existing app from JBoss AS 7.1 to Wildfly 8CR1, I got the error bellow.

       

      When the application starts, the first page that I access are displayed fine. But the second page that I access, the error occurs. I think that Wildfly compiles my default.tagx and the first page that includes the tag works fine. But any another page can't get the compiled tagx.

       

      My code is like:

       

      default.tagx

       

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:html="http://www.w3.org/1999/xhtml" version="2.2">

          <jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat" omit-xml-declaration="yes" />

          some code

          <jsp:doBody />

          more code

      </jsp:root>

       

      And all pages uses:

       

      <tags:default xmlns:tags="urn:jsptagdir:/WEB-INF/tags" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:html="http://www.w3.org/1999/xhtml">

          <jsp:output omit-xml-declaration="yes" />

          my code here

      </tags:default>

       

       

      br.com.caelum.vraptor.view.ResultException: org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.jsp.tag.web.default_tagx cannot be cast to org.apache.jsp.tag.web.default_tagx