users@glassfish.java.net

Re: How to use JSF 1.2 on Glassfish v3

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 18 Jun 2009 16:02:12 -0700

On 6/16/09 10:58 AM, glassfish_at_javadesktop.org wrote:
> Thanks for the quick answer!
>
> One issue this caused was the following strange error:
>
> [i]remote failure: Exception while loading the app : java.lang.Exception: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Source Document: jndi:/server/lt/WEB-INF/faces-config.xml Cause: Class 'org.springframework.web.jsf.DelegatingVariableResolver' is not an instance of 'class javax.faces.el.VariableResolver'[/i]
>
> To save space in the war archives I had put the SpringFramework jar in domain/domain1/lib, and apparently this causes a class loader issue where the class name can be the same, but the classes are not.
>
> This was fixed by including Spring in the war.
>
> [b]Which leads to a followup question[/b]: Is there anyway to have a the entire domain run JSF 1.2 by default by putting the jsf jars in "domain/domain1/lib"? This would avoid having to bundle jsf and spring in every web app.
>
At this point I don't believe it's possible. I would recommend opening
a feature request.
> [Message sent by forum member 'hanafey' (hanafey)]
>
> http://forums.java.net/jive/thread.jspa?messageID=351471
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>