Hi,

I have a simple server side java class named DBWriter (with no package name)
I am using it in a jsp file like this

<%DBWriter dbwrt = new DBWriter()%>

I get following exception on browser page while browsing the above jsp

____________________________________________________________________________
_________________
Error: 500
Location: /examples/jsp/dates/mydate.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate
_0002ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
                DBWriter w = new DBWriter();
                ^
D:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate_00
02ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
                DBWriter w = new DBWriter();
                                 ^
2 errors

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
____________________________________________________________________________
__________________________


as I told earlier the class I am using is not residing in any package, while
tomcat is trying to find it in jsp.dates package.

How do I get around this problem ? Is this a bug since I see similar kinds
of problems reported on the mailing list archieve

your help is appriciated,
Mandar


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to