[jboss-jira] [JBoss JIRA] (WFLY-2690) JSP/JSPX tags don't work with Wildfly CR1

Matus Zamborsky (JIRA) issues at jboss.org
Tue Jan 7 15:28:32 EST 2014


    [ https://issues.jboss.org/browse/WFLY-2690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934307#comment-12934307 ] 

Matus Zamborsky commented on WFLY-2690:
---------------------------------------

In that case, I don't see a way how to make the ID deterministic, because the class is loaded by class loader dynamically created during JSP loading. Only deterministic and distinct information is the jsp name, but I have no idea how it will be possible to pass this information down to weld and still don't make weld dependent on this specific class loader.

Does anybody know, how this problem was solved in AS 7 ?
                
> JSP/JSPX tags don't work with Wildfly CR1
> -----------------------------------------
>
>                 Key: WFLY-2690
>                 URL: https://issues.jboss.org/browse/WFLY-2690
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Undertow)
>    Affects Versions: 8.0.0.CR1
>         Environment: OpenJDK Runtime Environment (fedora-2.4.3.0.fc18-x86_64 u45-b15)
> OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
>            Reporter: Otávio Garcia
>            Assignee: Jozef Hartinger
>
> My app works fine on JBoss AS 7.1. When I migrate to Wildfly 8.0.0 CR1, my JSP tags don't work as expected. My project is a EAR with WAR module.
> When app starts, in the 1st access to page A, tag file is compiled and the page are rendered fine. But when I access another page (B in example), I got this error: 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
> If I restart Wildfly and try to access page B, works fine. But when I access page A, I got the same error.
> My default.tagx is bellow:
> <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 the pages are somethink like this:
> <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>
> I was created a new empty project with two pages and one tagfile. The error don't occurs. But when I add CDI capabilities, the error occurs. There are something in CDI that confuses Jastow?
> As discussed here: https://community.jboss.org/message/850730

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list