Problem Description:After Tomcat is booted, console is OK, the statement in console is: Information: Server startup in 7291 MS but browser access first page http://localhost:8080/psportal times wrong, The statement in console is: 2014-02-21 14:13:12,492-[psportal] ERROR http-8080-1 cn.com.infohold.common.sys.SnsPFilter- Org.apache.jasper.JasperException:Unable to compile class for Jsp:an error occurred on line:22 in the generated Java fi Lethe method Getjspapplicationcontext (ServletContext) is undefined for the type jspfactory Stacktrace:
Problem Analysis:
It could be in your project such as: Catalina.jar, Jsp-api.jar, Servlet-api.jar, Javax.servlet.jar, Javax.servlet.jsp.jar, etc. package and application Server (jboss/ Tomcat, and so on, the application server will first load the package in the project when it starts, causing the package to not match the other packages in the application server. You can remove duplicate packages from the project, or copy the packages under the application server to the project and restart the service.
Reference Baidu
Http://zhidao.baidu.com/link?url=6zbfB3X7hbXZ3qwdKqIWnvAB3gpdKm3lbLOtHp2qd-6B9G4f5jqcbI_EC3jXbqjCIJ_JlLLnGlyL_VHsgDnDTa
Solution:In the Tomcat project folder path, remove two files and try this method to solve the problem. Path: C:\Program files\apache-tomcat-6.0.29\webapps\gisportal\web-inf\lib file name: Javax.servlet.jar, Javax.servlet.jsp.jar
Results:Remove Jsp-api.jar, Servlet-api.jar from the Web engineering Lib directory, and restart the JBoss service problem resolution.
After Tomcat starts, Page view times error Unable to compile class for JSP solution