my dog learned polymorphism*
The moose likes JSP and the fly likes Error in the code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Error in the code." Watch "Error in the code." New topic
Author

Error in the code.

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
What the below Error Mean?

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Program Files\Tomcat5\work\Catalina\localhost\demo\org\apache\jsp\Report_005findex_jsp.java:39: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.Report_005findex_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean)
pageContext = _jspxFactory.getPageContext(this, request, response,
^


Generated servlet error:
Note: C:\Program Files\Tomcat5\work\Catalina\localhost\demo\org\apache\jsp\Report_005findex_jsp.java uses unchecked or unsafe operations.


Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.
1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.



the code is as below:


[Fixed stuck key - Dave]
[ May 23, 2008: Message edited by: David O'Meara ]

Thanks,
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It looks like your JSP extends a page that uses the wrong argument list when calling getPageContext.

<%@ page extends ="com.aciworldwide.application.AppPage"%>

getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to....


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in the code.
 
Similar Threads
Problems when getting TIMESTAMPTZ data from Oracle database in JSP
JSP error using tomcat
Error in JSP
Multiple forms in a single JSP page
problem in jsp page