Skip to main content


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 10:14 Go to next message
Alex Averbuch is currently offline Alex AverbuchFriend
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 14:40 Go to previous messageGo to next message
Alex Averbuch is currently offline Alex AverbuchFriend
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 19:50 Go to previous message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
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: Thu Mar 28 14:09:03 GMT 2024

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

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

Back to the top