Monday, May 20, 2013
Facelets + JSF2.0 + EL2 on JBoss 4.0.3 Tomcat 5.5
So I had this painful task to bring JSF2 to life on a very old platform.
My customer is using Tomcat 5.5 / JBoss 4.0.3 SP1.
After many days of try and fail I managed to gather a configuration that works. The following are the jars that work on this configuration (I am using XHTML. JSP2 do not work as far as I know but I haven't realy tried):
commons-beanutils-1.8.3.jar
commons-codec-1.3.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-logging-1.1.1.jar
el-api.jar
jboss-el-2.0.0.GA.jar
jstl-1.2.jar
myfaces-bundle-2.0.18-20130417.135111-27.jar
ojdbc14.jar
standard.jar
Please not that I have removed the JBoss original JSF-LIBs and the referencees to this folder.
Also, there is some necessary configuration to be performed:
Remove FaceletViewHandler from faces-config.xml (basicaly you can leave it empty):
com.sun.facelets.FaceletViewHandler
And here is the whole web.xml:
org.apache.myfaces.EXPRESSION_FACTORY
org.jboss.el.ExpressionFactoryImpl
javax.faces.PROJECT_STAGE
Development
javax.faces.DEFAULT_SUFFIX
.xhtml
facelets.REFRESH_PERIOD
2
facelets.DEVELOPMENT
true
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
*.faces
index.jsp
index.html
Cheers,
Subscribe to:
Posts (Atom)