Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config [message #832588] |
Fri, 30 March 2012 06:14  |
Eclipse User |
|
|
|
When trying to run a very basic JSF project I get the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
Caused by:
java.lang.ClassNotFoundException - javax.servlet.jsp.jstl.core.Config
I'm using Maven to get dependencies:
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>javax.servlet.jsp.jstl</artifactId>
<version>1.2.1</version>
</dependency>
In my Dynamic Web Project I have the following library folders...
Libraries:
- Apache Tomcat v7.0
- EAR Libraries
- JSF 2.0
--- I think it is looking for javax.servlet.jsp.jstl.core.Config in here
- Maven Dependencies
--- jstl-api-1.2.jar
------ javax.servlet.jsp.jstl.core.Config
What I think is happening, is MyFaces(?) is looking for jstl inside the "JSF 2.0" library, and isn't seeing my "Maven Dependencies" library.
Does anyone know how to solve this problem?
Thanks,
Alex
|
|
|
|
Re: Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config [message #901105 is a reply to message #832752] |
Thu, 09 August 2012 15:50  |
Eclipse User |
|
|
|
My system is in disrepair at present, so I can't look at specifics, but I think the answer's going to lie in the deployment assembly. Look at project properties, deployment assembly. By default, WTP knows to deploy certain classpath containers, but doesn't know to deploy anything in the maven dependencies container. You'd have to add an entry and map from maven deps into your deployed app.
|
|
|
Powered by
FUDForum. Page generated in 0.06808 seconds