Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Upgrade from JSF 1.1 to JSF 1.2 (Mojarra and MyFaces) failed.

843844Feb 17 2009 — edited Feb 24 2009

Dear all,

I tried to upgrade from JSF 1.1 to JSF 1.2 but failed. The application starts OK in jsf 1.1 both myfaces and RI, but failed to start using JSF 1.2.


My environment is as follows.
- JDK 1.5
- Tomcat 6.0
- Facelet
- JSF Mojarra 1.2


The error is as follows, occurs when starting tomcat (my application is in context /web)



INFO: Initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
Feb 12, 2009 10:39:40 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [web] startup failed due to previous errors


What I have included in WEB-INF/lib are:
- JSTL 1.2 (standard.jar and jstl.jar)
- JSF mojarra 1.2 (jsf-api.jar and jsf-impl.jar)
- Facelets( el-api.jar, el-impl.jar, and jsf-facelet.jar)
- commons-digester.jar
- commons-beanutils.jar
- commons-logging.jar
- commons-collection.jar


Documentation that I read from mojarra FAQ states that i need EL, but EL has been included in Facelets.


Am i missing something? The following is the part of web.xml that i used, maybe useful to locate what i am missing.



<web-app xmlns="[http://java.sun.com/xml/ns/j2ee]"
xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]"
xsi:schemaLocation="[http://java.sun.com/xml/ns/j2ee] [http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd]"
version="2.4">
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>


<!-- Special Debug Output for Development -->
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>


<!-- Optional JSF-RI Parameters to Help Debug -->
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<!--use this if start using JSF 1.2 -->
<context-param>
<param-name>com.sun.faces.injectionProvider</param-name>
<param-value>com.sun.faces.vendor.GlassFishInjectionProvider</param-value>
</context-param>


<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2009
Added on Feb 17 2009
7 comments
584 views