aspose file tools*
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a different JSF implementation on Glassfish V3.
 
Similar Threads
Injecting a session bean into an application bean
Jar files for JSF 2.0 + Primefaces
How to call function upon loading of JSF application
Best JSF 1.2 implementation
Starting a JSF 2.0 project with PrimeFaces 2.2. M1 and Glassfish 3.0