MAVEN deploys the project to tomcat-error: JAVA.LANG.NOCLASSDEFFOUNDERROR:JAVAX/SERVLET/JSP/JSTL/CORE/CONFIG__JS

Source: Internet
Author: User

Today, when you use Maven to write SPRINGMVC, you encounter a problem when you deploy to Tomcat:

Java.lang.noclassdeffounderror:javax/servlet/jsp/jstl/core/config
At Org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext (jstlutils.java:101)
At Org.springframework.web.servlet.view.JstlView.exposeHelpers (jstlview.java:135)
At Org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel (Internalresourceview.java : 142)
At Org.springframework.web.servlet.view.AbstractView.render (abstractview.java:303)
At Org.springframework.web.servlet.DispatcherServlet.render (dispatcherservlet.java:1244)
At Org.springframework.web.servlet.DispatcherServlet.processDispatchResult (dispatcherservlet.java:1027)
At Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:971)
At Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:893)
At Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:970)
At Org.springframework.web.servlet.FrameworkServlet.doPost (frameworkservlet.java:872)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:637)
At Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:846)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:717)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:290)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:85)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:235)
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:128)
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:293)
At Org.apache.coyote.http11.Http11Processor.process (http11processor.java:849)
At Org.apache.coyote.http11.http11protocol$http11connectionhandler.process (http11protocol.java:583)
At Org.apache.tomcat.util.net.jioendpoint$worker.run (jioendpoint.java:454)
At Java.lang.Thread.run (thread.java:619)

So think for a long time, finally find out, originally less guide the Jstl.jar. and Standard.jar these two jar packs

1 To add the two jar dependencies in the Pom.xml file, it's OK.

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

<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>

2 Create the folder in the local warehouse and put the jar bag in

Discover folder names created in local libraries and configure dependencies for GroupID, Artifactid, and version .... Ha ha


<dependency>
<groupId>javax.servlet.jl</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>taglibs.jl</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>

3) can write dead path, not really understand yet.


After the addition succeeds, stop the server, clear, package, and so on, and then use Tomcat:run to start the server


What's the effect of these two jar packs?

The role of Standard.jar
The JSP standard tag library, which is used in conjunction with Jstl.jar, is in the 1.0 version, but is not needed in Jstl-1.2.jar.
If you want to use Jstl and El Expressions in your project, you must introduce this Standard.jar file. Even if you do not introduce, the MyEclipse tool will also help you pour in the library.


Reference URL: http://www.cnblogs.com/buglove/p/5159093.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.