Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Error running JSF2 project on Tomcat6
Error running JSF2 project on Tomcat6 [message #835094] Mon, 02 April 2012 19:47 Go to next message
Carlos Alegria is currently offline Carlos AlegriaFriend
Messages: 4
Registered: April 2012
Junior Member
Hi all,

I am using the Eclipse Java EE IDE for web developers, Indigo version. I've created a JSF 2.0 project following the tutorial "JSF Tools tutorial - Build a JSF 2.0 application" that comes with eclipse. When I press "right click" -> "Run As ..." -> "Run on Server" on the sample xhtml page, I got an error on the server output console:

Apr 2, 2012 1:02:59 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(
	at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(
	at com.sun.faces.lifecycle.Phase.doPhase(
	at com.sun.faces.lifecycle.LifecycleImpl.render(
	at javax.faces.webapp.FacesServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

I am aware that Tomcat 6 does not contain the libraries needed for JSF 2.0, but I thought that telling Eclipse to include those libraries with the application would be enough. A weird thing is that, when exporting the app to a war file, the JSF 2.0 libraries are in fact included in the /WEB_INF/lib directory, but I am not able to run the app within the IDE.

As a "workaround", I installed the libraries directly on my Tomcat 6 installation, but there is no place in the documentation that says this is necessary.

Does anyone knows what should I do to solve this?

Thanks in advance
Re: Error running JSF2 project on Tomcat6 [message #835106 is a reply to message #835094] Mon, 02 April 2012 20:11 Go to previous messageGo to next message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
Registered: July 2009
Senior Member
Are you also including JSTL 1.2 in your web app? It's a JSTL library that can't be located, according to your stacktrace. JSF requires JSTL.

You can locate JSTL on the web at several locations, including

- Ian
Re: Error running JSF2 project on Tomcat6 [message #835333 is a reply to message #835106] Tue, 03 April 2012 04:12 Go to previous message
Carlos Alegria is currently offline Carlos AlegriaFriend
Messages: 4
Registered: April 2012
Junior Member
I have added the libraries to the project and now everything is working OK. Thanks a lot for your help!!

Previous Topic:Error while trying to create JavaServer Faces project
Next Topic:Customizing palette in Web Page Editor
Goto Forum:

Current Time: Sat Sep 22 19:37:28 GMT 2018

Powered by FUDForum. Page generated in 0.02278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top