Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)
| Posted by watashii | Filed under Java, Programming, WebWhen choosing facets during the creation of a new portal web project, the built-in Sun RI JSF 1.2 (together with JSTL 1.2) facets cannot be selected. Here are the recommended (by Oracle) steps to get around this problem. Note that this is because Apache Beehive Page Flow has a dependecy with JSF 1.2, therefore only follow this if not using the page flow integration components provided by Beehive.
1) Select JSF 1.1 (together with JSTL 1.1) first, and create the portal web project, making sure the other dependencies with other facets are valid.
2) Open the web projects properties, under the Java Build Path, and locate the the Libraries tab. Find the “jsf-ri” shared library containing JSF 1.1 jar files and remove it.
3) Next, Add Library, add a Weblogic Shared Library, Next, then Browse and select jsf 1.2. Press OK and Finish.
4) Edit the “jstl” shared library and change the Specification Version from 1.1 to 1.2. Press OK to close the properties.
4) The last step is to modify the weblogic.xml file under the WEB-INF directory depending on where you set your WebContent directory:
- Find the library entry containing jstl and update the version from 1.1 to 1.2
- Delete the library entry containing jsf-ri
- Add a new library entry containing jsf and make sure the version is 1.2
5) Clean, build and redeploy your EAR and WAR projects.
Related Posts:
- Reading Portlet Preferences in Weblogic Portal
- Weblogic Portal – Create Streaming Desktop Page Definition Error
- Weblogic Portal Authorization – Get and Check User’s Roles
- Start & Stop Weblogic Without Username & Password
- Encrypt Passwords With Weblogic Server
Tags: facets, jsf, jstl, portal, weblogic



