java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config

文章來源:http://blog.csdn.net/smile_juan/article/details/8108851

When I was configure Liferay dependency in pom.xml, previously I just copy all jars into tomcat/lib/ext folder, it's not a good way to do that. After that, I just configure all spring and Hibernate jars. It give me an error like:

java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config

The problem is it miss jstl jar. By default, Tomcat container doesn’t contain any jstl library. To fix it, declares jstl.jar in your Maven pom.xml file.

<dependency>
	<groupId>javax.servlet</groupId>
	<artifactId>jstl</artifactId>
	<version>1.2</version>
	<scope>runtime</scope>
</dependency>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章