Org. Apache. Jasper. jasperexception: Unable to compile class for JSP

Source: Internet
Author: User
In the Web. xml file, add the following code errors: <servlet>
<Servlet-Name> debugjsp </servlet-Name>
<Description> added to compile JSPs with debug info </description>
<Servlet-class> org. Apache. Jasper. servlet. jspservlet </servlet-class>
<Init-param>
<Param-Name> classdebuginfo </param-Name>
<Param-value> true </param-value>
</Init-param>
<Load-on-startup> 3 </load-on-startup>
</Servlet>
<Servlet-mapping>
<Servlet-Name> debugjsp </servlet-Name>
<URL-pattern> *. jsp </url-pattern>
</Servlet-mapping>

Error message: org. Apache. Jasper. jasperexception: Unable to compile class for JSP
At org. Apache. Jasper. compiler. defaulterrorhandler. javacerror (defaulterrorhandler. Java: 97)
At org. Apache. Jasper. compiler. errordispatcher. javacerror (errordispatcher. Java: 346)
At org. Apache. Jasper. compiler. compiler. generateclass (compiler. Java: 414)
At org. Apache. Jasper. compiler. compiler. compilile (compiler. Java: 472)
At org. Apache. Jasper. compiler. compiler. compilile (compiler. Java: 451)
At org. Apache. Jasper. compiler. compiler. compilile (compiler. Java: 439)
At org. apache. jasper. JspCompilationContext. compile (JspCompilationContext. java: 511)
At org. apache. jasper. servlet. JspServletWrapper. service (JspServletWrapper. java: 295)
At org. apache. jasper. servlet. JspServlet. serviceJspFile (JspServlet. java: 292)
At org. apache. jasper. servlet. JspServlet. service (JspServlet. java: 236)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 802)
At org. apache. catalina. core. ApplicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 237)
At org. apache. catalina. core. ApplicationFilterChain. doFilter (ApplicationFilterChain. java: 157)
At org. apache. catalina. core. ApplicationDispatcher. invoke (ApplicationDispatcher. java: 704)
At org. apache. catalina. core. ApplicationDispatcher. processRequest (ApplicationDispatcher. java: 474)
At org. apache. catalina. core. ApplicationDispatcher. doForward (ApplicationDispatcher. java: 409)
At org. apache. catalina. core. ApplicationDispatcher. forward (ApplicationDispatcher. java: 312)
At waf. controller. web. action. HTMLAction. forwardAction (HTMLAction. java: 154)
At components. admin. logon. actions. LogOnAction. run (LogOnAction. java: 54)
At waf. controller. web. RequestProcessor. processRequest (RequestProcessor. java: 98)
At waf. controller. web. MainServlet. doProcess (MainServlet. java: 95)
At waf. controller. web. MainServlet. doPost (MainServlet. java: 60)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 709)
At javax. servlet. http. HttpServlet. service (HttpServlet. java: 802)
At org. apache. catalina. core. ApplicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 237)
At org. apache. catalina. core. ApplicationFilterChain. doFilter (ApplicationFilterChain. java: 157)
At org. apache. catalina. core. StandardWrapperValve. invoke (StandardWrapperValve. java: 214)
At org. apache. catalina. core. StandardValveContext. invokeNext (StandardValveContext. java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardcontextvalve. invokeinternal (standardcontextvalve. Java: 198)
At org. Apache. Catalina. Core. standardcontextvalve. Invoke (standardcontextvalve. Java: 152)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardhostvalve. Invoke (standardhostvalve. Java: 137)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Valves. errorreportvalve. Invoke (errorreportvalve. Java: 118)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 102)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardenginevalve. Invoke (standardenginevalve. Java: 109)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. containerbase. Invoke (containerbase. Java: 929)
At org. Apache. Coyote. tomcat5.coyoteadapter. Service (coyoteadapter. Java: 160)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 799)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. processconnection (http11protocol. Java: 705)
At org.apache.tomcat.util.net. tcpworkerthread. Runit (pooltcpendpoint. Java: 577)
At org. Apache. tomcat. util. threads. threadpool $ controlrunnable. Run (threadpool. Java: 683)
At java. Lang. thread. Run (unknown source)

Delete the information added in Web. xml and solve the problem.

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.