tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <ammul...@alumni.princeton.edu>
Subject Re: Using tomcat with Oracle pure java thin drivers
Date Wed, 12 Jan 2000 12:55:33 GMT
	As someone else pointed out, you can include the Oracle driver (in
the original JAR) by including it in the Tomcat classpath via changing the
batch or shell script that starts it.

	As for the exceptions, the first one just says that there was an
exception while running a JSP page.  I'm not intimately familiar with the
JSP engine, but it looks like the JSP got compiled into a class with an
arbitrary name and the exception was in its _jspService method
(jsp._0005cjsp_0005cnde_0002ejspnde_jsp_0._jspService).
	The second exception is the root cause of the first - there was a
NullPointerException in the JSP page that caused the JSP engine to throw
the ServletException.  Unfortunately, without the source code that the JSP
was turned into, it may be difficult to track down - and the JIT was
running anyway, so you can't get a line number.  Perhaps you can poke
around on your disk for the source code of the JSP class above, or just
look for anywhere you might throw the NPE in your JSP code...

Aaron

On Tue, 11 Jan 2000, John Coonrod wrote:
> I've installed tomcat release 3.0 and it works fine with all the jsp 
> examples. But when I try to run jsp pages that use the oracle pure java thin 
> ddbc drivers I've previously run under apache/jserv/gnujsp, it won't work.
> 
> At first the jsp page under tomcat had trouble loading the oracle driver, 
> but once I unzipped them into an oracle folder inside .\classes, it got past 
> that and then gave this error:
> 
> What gives? Any help getting over this first hurdle would be VERY welcome. 
> Thanks!
> 
> Error: 500
> Internal Servlet Error:
> 
> javax.servlet.ServletException
> 	at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:384)
> 	at 
> jsp._0005cjsp_0005cnde_0002ejspnde_jsp_0._jspService(_0005cjsp_0005cnde_0002
> ejspnde_jsp_0.java, Compiled Code)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:161)
> 	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
> 	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled 
> Code)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at 
> org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:6
> 26)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java, 
> Compiled Code)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
> 	at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
> 	at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:144)
> 	at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:304)
> 	at java.lang.Thread.run(Thread.java:479)
> 
> Root cause: 
> java.lang.NullPointerException
> 	at 
> jsp._0005cjsp_0005cnde_0002ejspnde_jsp_0._jspService(_0005cjsp_0005cnde_0002
> ejspnde_jsp_0.java, Compiled Code)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:161)
> 	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
> 	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled 
> Code)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 	at 
> org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:6
> 26)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java, 
> Compiled Code)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
> 	at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
> 	at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:144)
> 	at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:304)
> 	at java.lang.Thread.run(Thread.java:479)
> 
> 
> ----------------
> Dr. John Coonrod, Vice President
> The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 



Mime
View raw message