This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes can any one help me in sloving my this jsp errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

can any one help me in sloving my this jsp errors

rajesh roy
Greenhorn

Joined: Mar 23, 2007
Posts: 4
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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 ?


[My Blog]
All roads lead to JavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://www.coderanch.com/t/291650/JSP/java/any-one-slove-jsp-errors


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: can any one help me in sloving my this jsp errors
 
Similar Threads
problem while accessing class file from a package
can any one slove my this jsp errors
can any one slove my this jsp errors
JSP error using tomcat
Unable to compile class for JSP