Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config
Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config [message #832588] Fri, 30 March 2012 06:14 Go to next message
Alex Averbuch is currently offline Alex Averbuch
Messages: 13
Registered: March 2012
Junior Member
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 #832752 is a reply to message #832588] Fri, 30 March 2012 10:40 Go to previous messageGo to next message
Alex Averbuch is currently offline Alex Averbuch
Messages: 13
Registered: March 2012
Junior Member
My question is not really Maven specific, it is more:
"How can I tell Eclipse to look for libraries in the Ivy/Ant/Maven libraries?"

The problem I have right now is that all of my dependencies are in fact in the Maven library, but my .jsp files can not see them for some reason. For example, in my .jsp file I get the error: "Unknown tag (f:view)."

My goal is to move everything in Maven, rather than depending on locally stores libraries.
Re: Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config [message #901105 is a reply to message #832752] Thu, 09 August 2012 15:50 Go to previous message
Ian Trimble is currently offline Ian Trimble
Messages: 136
Registered: July 2009
Senior Member
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.
Previous Topic:Customizing palette in Web Page Editor
Next Topic:Problems with editing JSF pages on Juno
Goto Forum:
  


Current Time: Wed Jul 30 05:20:36 EDT 2014

Powered by FUDForum. Page generated in 0.09949 seconds