Could not initialize class org.apache.jsp.index_jsp

Source: Internet
Author: User

Recently use MAVEN to build SPRINGMVC project, didn't think just ready to say finished visit JSP page error, really frustrated AH. The specific error message is as follows:

Java.lang.NoClassDefFoundError:Could not initializeclassorg.apache.jsp.index_jsp at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflec T.nativeconstructoraccessorimpl.newinstance ( at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance ( at Java.lang.reflect.Constructor.newInstance ( at Java.lang.Class.newInstance0 ( at Java.lang.Class.newInstance ( at Org.apache.jasper.servlet.JspServletWrapper.getServlet ( at Org.apache.jasper.servlet.JspServletWrapper.service ( at Org.apache.jasper.servlet.JspServlet.serviceJspFile ( at Org.apache.jasper.servlet.JspServlet.service ( at Javax.servlet.http.HttpServlet.service ( at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal ( 88) at Org.springframework.web.filter.OncePerRequestFilter.doFilter ( at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( at Org.apache.catalina.core.StandardWrapperValve.invoke ( at Org.apache.catalina.core.StandardContextValve.invoke ( at Org.apache.catalina.core.StandardHostValve.invoke ( at Org.apache.catalina.valves.ErrorReportValve.invoke ( at Org.apache.catalina.core.StandardEngineValve.invoke ( at Org.apache.catalina.connector.CoyoteAdapter.service ( at Org.apache.coyote.http11.Http11Processor.process ( at Org.apache.coyote.http11.http11protocol$http11connectionhandler.process ( at$ ( at (
View Code

After analyzing the experiment, it concludes that the jar package conflicts, and the following dependencies are commented out.

        <dependency>            <groupId>javax.servlet</groupId>            <artifactid>javax.servlet-api </artifactId>            <version>3.0.1</version>        </dependency>        <!--<dependency >            <groupId>javax.servlet.jsp</groupId>            <artifactid>javax.servlet.jsp-api</ artifactid>            <version>2.3.1</version>            <scope>provided</scope>        </ Dependency>--
View Code

Could not initialize class org.apache.jsp.index_jsp

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: 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.