After Tomcat starts, Page view times error Unable to compile class for JSP solution

Source: Internet
Author: User
Tags jboss

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

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.