[weld-issues] [JBoss JIRA] Closed: (WELD-434) Use class loading only to detect JSF version

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Feb 16 14:12:11 EST 2010


     [ https://jira.jboss.org/jira/browse/WELD-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-434.
--------------------------



> Use class loading only to detect JSF version
> --------------------------------------------
>
>                 Key: WELD-434
>                 URL: https://jira.jboss.org/jira/browse/WELD-434
>             Project: Weld
>          Issue Type: Bug
>          Components: Reflection layer, Web Tier integration (JSF, JSP, EL and Servlet) 
>    Affects Versions: 1.0.1.CR2
>            Reporter: Dan Allen
>            Assignee: Dan Allen
>            Priority: Minor
>             Fix For: 1.0.1.GA
>
>
> The JsfApiAbstraction attempts to detect the presence of the method FacesContext#isPostback() to determine if JSF 2.0 is on the classpath. This causes a problem if Sun's stripped APIs are on the classpath at runtime, even if the developer has no intention of using JSF. When an attempt is made to detect the presence of a method from stripped code, the check blows up.
> An example of the stripped code is the artifact javax.javaee-api:6.0 in the NetBeans Maven repository: http://download.java.net/maven/2/javax/javaee-api/6.0/
> It would be safer to search for the javax.faces.component.behavior.Behavior class to detect if JSF 2 is present.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list