users@glassfish.java.net

Re: How to use JSF 1.2 on Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Jun 2009 10:58:42 PDT

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.
[Message sent by forum member 'hanafey' (hanafey)]

http://forums.java.net/jive/thread.jspa?messageID=351471