Error msg : 'pageContext' cannot be resolved in tag file....
Hi All,
I have my web application deployed on WebSphere Application server 6.0 ,which is running fine.Now my task is to move the web application to tomcat 5.5(also included JDK 1.4 compatibility package), as the code is compiled using jdk 1.4.In one of the tag files , i have used jsp implicit object 'pageContext' , which is giving error.
Code :
pageContext.get ServletContext();
Error in tomcat:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 60 in the jsp file: /WEB-INF/tags/javascriptdeclarations.tag
pageContext cannot be resolved
57: <![endif]-->
58:
59: <!-- Scripts -->
60: <%= nextgen.webui.framework.aggregator.IncludeControll er.createJSDeclarations((HttpServletRequest)reques t,pageContext.getServletContext()) %>
61:
I have been searching for any suggestions in Google ,but remained clueless.Any help would be greatly appreciated.
Thanks in advance
Saikrishna Vuddagiri
Re: Error msg : 'pageContext' cannot be resolved in tag file....
Hello,
You need to make sure that jsp-api.jar is on your classpath of your tomcat. So make sure you either supply it in your web-inf/lib folder or in the catalina-home/lib folder.
// Json
Re: Error msg : 'pageContext' cannot be resolved in tag file....
Hi Json,
jsp-api.jar is already there in tomcat's classpath i.e Tomcat 5.0/common/lib.
Re: Error msg : 'pageContext' cannot be resolved in tag file....
Open the jar and make sure it has the PageContext class in it.
// Json
Re: Error msg : 'pageContext' cannot be resolved in tag file....
Hi Json,
I have checked the jar and it has PageContext class in it.
Regards
Saikrishna
Re: Error msg : 'pageContext' cannot be resolved in tag file....
So when is the jasper compiler running, is it when you first try to go to the page?
// Json