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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to upgrade from JSF 1.1 to JSF 1.2

843844Apr 3 2007 — edited Mar 26 2008
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- UncheckInstall 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.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 23 2008
Added on Apr 3 2007
14 comments
2,814 views