This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
GeeCON Prague 2014
 
subject: Using a different JSF implementation on Glassfish V3.