A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
can any one help me in sloving my this jsp errors
rajesh roy
Greenhorn
Joined: Mar 23, 2007
Posts: 4
posted
Mar 29, 2007 02:03:00
0
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: 14672
11
I like...
posted
Mar 29, 2007 02:12:00
0
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
I like...
posted
Mar 29, 2007 04:06:00
0
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://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
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
JSP error using tomcat
can any one slove my this jsp errors
Unable to compile class for JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter