wood burning stoves 2.0*
The moose likes JSF and the fly likes Using a different JSF implementation on Glassfish V3. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Using a different JSF implementation on Glassfish V3." Watch "Using a different JSF implementation on Glassfish V3." New topic
Author

Using a different JSF implementation on Glassfish V3.

B Nirvan
Ranch Hand

Joined: Oct 20, 2010
Posts: 82
Hi,
Glassfish comes bundled with default Mojarra implementation. Currently the version 3 that I am using has Mojarra 2.0.2 as jsf framework. I want to use Mojarra 2.0.3 instead of the glassfish default 2.0.3. I searched the web and found the only way to do this was to modify the sun-web.xml(of web project) to include the following code



If the delegate="false" is set, the default class loading behaviour is not used and instead those specified in the Servlet specs is used (which I believe loads the frameworks bundled in project first). Now the issue is that glassfish throws Exception and fails to start up if class-loader="false" is set.

I saw the documentation for the class-loader element and it says that the attribute delegate should be always "true" if we are using modules other than simple web application(like javax.*). In that scenario, I am not able to find a solution whereby I will be able to deploy my web application using Mojarra-2.0.3 bundled with it.

Question: What should I do to use Mojarra-2.0.3 bundled with my web application, instead of glassfish's default implementation.

regards,
Nirvan.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Using a different JSF implementation on Glassfish V3.