Then I decided to make a little search on Google and I could find that JSF 2.0 RC can be configured to run on Glassfish V2/.1 without any complex step. Following the instructions of this page, I performed the following steps:
- download the Mojarra 2.0.0 RC binary bundle from this webpage;
- backup your existing jsf-impl.jar found in GF_HOME/lib;
- copy the new jsf-api.jar and jsf-impl.jar to GF_HOME/lib;
- edit your GF_HOME/domains/[domain-name]/config/domain.xml and add (or update the existing classpath-prefix) 'classpath-prefix="${com.sun.aas.installRoot}/lib/jsf-api.jar" to the
tag; restart your server.
<java-config
classpath-prefix="${com.sun.aas.installRoot}/lib/jsf-api.jar"
classpath-suffix="" ... >
...
...
</java-config>
Probably, you won't find the classpath-prefix parameter there, so there is no problem if you add it. ;) To check whether it is running correctly, open the Glassfish Admin Console (http://localhost:4848/), which is a JSF application, and see if it is running normally. The following line will be printed on the application server log file (server.log) when starting the JSF application:
Initializing Mojarra 2.0.0 (RC b16) for context ''
That's all! I'm not sure if it is enough. I'm going to start the migration in the next days. If I find issues during the process, I will come here to report them in details. I just hope that, when I finish this implementation, the market will finally offer an application server supporting JSF 2.0 by default.
8 comments: