the conflict of jsp 2.0 api jsp 2.1 api
I update tomcat 5.5 with tomcat6.0.18, then I create a new project called test in {tocma_home|\webapps. In test directory ,there are index.jsp(file) and WEB-INF(directory). Run . It does not work .
the exception as follows:
the method getJspApplicationConext(ServletContext) is undefined for type JspFacotry(there are many exceptions .I feel it is the most important)
.....
.....
the reason that resulted in the exception is the conflict of jsp 2.0 api and jsp 2.1 api .
the method getJspApplicationContect(ServeletContext) has been put into jsp 2.1 api
so deal with it as follows:
1:remove the jsp-api.jar and servlet-api.jar in /home/java/jdk/jre/lib/ext directroy.
the jars in {jdk_home}/jre/lib/ext are loaded first ,then {tomcat_home}/lib
2:cd {tomcat_home}/bin
./shutdown (stop tomcat )
netstat -an | grep 8080(make sure the service is stopped)
./startup.sh
now . It is oK.
If the problem still exists . then You should make sure the jsp api version and servlet api version.
阅读(1224) | 评论(0) | 转发(0) |