Bookmark Topic Watch Topic
  • New Topic

can any one help me in sloving my this jsp errors

 
rajesh roy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
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

An error occurred at line: 2 in the jsp file: /test.jsp

Generated servlet error:
[javac] Compiling 1 source file

E:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\new2503\org\apache\jsp\test_jsp.java:42: package sql does not exist
sql.SqlBean sq = null;
^



An error occurred at line: 2 in the jsp file: /test.jsp

Generated servlet error:
E:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\new2503\org\apache\jsp\test_jsp.java:44: package sql does not exist
sq = (sql.SqlBean) pageContext.getAttribute("sq", PageContext.PAGE_SCOPE);
^



An error occurred at line: 2 in the jsp file: /test.jsp

Generated servlet error:
E:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\new2503\org\apache\jsp\test_jsp.java:46: package sql does not exist
sq = new sql.SqlBean();
^
3 errors


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


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


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

Apache Tomcat/5.0.16
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please show us your test.jsp. You're trying to use a class called SqlBean, but it cannot be found. Where is it ?

And could you please stop flooding the forum with the same question ?
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic