1. During Development today, we suddenly encountered the following problems.
The console is printed as follows:
2010-7-20 23:35:42 org. Apache. Catalina. Core. standardwrappervalve invoke
Severe: servlet. Service () for servlet JSP threw exception
Java. Lang. nosuchmethoderror: javax. servlet. jsp. jspfactory. getjspapplicationcontext (ljavax/servlet/servletcontext;) ljavax/servlet/JSP/jspapplicationcontext;
At org. Apache. jsp. index_jsp. _ jspinit (index_jsp.java: 26)
At org. Apache. Jasper. runtime. httpjspbase. INIT (httpjspbase. Java: 52)
At org. Apache. Jasper. servlet. jspservletwrapper. getservlet (jspservletwrapper. Java: 159)
At org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 329)
At org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 342)
At org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 267)
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. Apache. struts2.dispatcher. Ng. Filter. strutsprepareandexecutefilter. dofilter (strutsprepareandexecutefilter. Java: 88)
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: 286)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 845)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. Process (http11protocol. Java: 583)
At org.apache.tomcat.util.net. jioendpoint $ worker. Run (jioendpoint. Java: 447)
At java. Lang. thread. Run (unknown source)
2010-7-20 23:35:43 org. Apache. Catalina. Core. standardwrappervalve invoke
2. This problem is very distressing. Who knows if this problem can happen. I checked it online and said I deleted a JSP. jar package from the project, but I didn't have this package in this project. After verification, the problem was resolved as follows:
Delete the project and release it again. This error is not displayed on the console.
3. during development, we often encounter such a strange problem. We should still "have a long journey, and I will search for the problem above and below ".