Creating a JSF 1.2 web project on MyEclipse 5.1 and Tomcat 6
Hi all,
I have googled a long time for this question:
How to upgrade from JSF 1.1 to JSF 1.2?
I'm using MyEclipse 5.1 and Tomcat 5.5. Finally I have found the correct way to do that:
1- Download Tomcat 6 it from: http://tomcat.apache.org/download-60.cgi
2- Download JSF 1.2 jars from: https://javaserverfaces.dev.java.net/download.html
3- Download JSTL 1.2 from: https://maven-repository.dev.java.net/repository/jstl/jars/
In MyEclipse:
1- From
File menu select
New →
Project.
2- Select
Web Project from
MyEclipse →
J2EE Projects, and click Next.
3- Write the
Project Name then click
Finish.
4- On the
Package Explorer, right click on the project. Then select
MyEclipse →
Add JSF Capabilities.
5-
Uncheck �
Install JSF Jars and packaged TLDS� and �
Install JSF TLDs�.
6- Copy the JSF 1.2 jar files into WEB-INF\lib folder:
jsf-api.jar
jsf-impl.jar
jstl-1.2.jar
7- Open the file WEB-INF\Web.xml and add the following lines before �</web-app>�:
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
<listener>
<listener-class>
com.sun.faces.application.WebappLifecycleListener
</listener-class>
</listener>
In Tomcat 6:
1- Install Tomcat 6.
2- Open the file �conf\server.xml� and delete the following line:
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
This is all of what you need. You don't need to add any other TLDs or jars.