Archive for the ‘JavaServer Faces’ Category

Setting Up Tomcat 6 with JSF

So, I’m setting up Tomcat 6 and want to run some JSF 1.2 apps with MyFaces core and Tomahawk. Got everything configured properly except the JSTL jar and spent some time banging my head against a class not found error, specifically the Config class in the JSTL jar.

I found this very useful post, which advied me to install glassfish and pull a couple jars from its lib folder. I did this, and it did not work: I wonder if this is because I am using MyFaces instead of Mojarra. However, the following note, lefd me to the solution I needed:

“Tomcat will ignore .. any JAR file [inside your app's WEB-INF/lib folder] completely if it contains the class javax.servlet.Servlet)”

So, I moved the jstl jar file to tomcat’s lib folder, rebooted the server, and bang everything started working.