i am first installing the tomcat 5.5 in my hosting server system and created the one folder(like test) in webapps and place all the jsp files.And also created the another folder(like test2) and place all related files in that.
Now i give the url as http://localhost:8080/test/sample.jsp
http://localhost:8080/test1/home.jsp
Both are working fine.
Now i installed tomcat 6.0 and move the all the files in tomcat 5.5 into tomcat 6.0
Then i give the url as http://localhost:8080/test/sample.jsp
And when i give the another url as
http://localhost:8080/test1/home.jsp
it shows the error messages as
Expand|Select|Wrap|Line Numbers
- type Exception report
- message
- description The server encountered an internal error () that prevented it from fulfilling this request.
- exception
- javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
- org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
- javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- root cause
- java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
- org.apache.jsp.my_002dphotos_jsp._jspInit(my_002dphotos_jsp.java:22)
- org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
- org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
- org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
- org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
- org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
- javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.