Error running JSF2 project on Tomcat6 [message #835094] |
Mon, 02 April 2012 19:47 |
Carlos Alegria 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(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:340)
at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)
...
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03054 seconds