Hi...
Thanks for the response.I tried with a diff. setup with little luck with tomcat.
Please find the info and
jsp.
Regards
Binu
Test Environment1:[JSP FAILS ..ERROR LOG ATTACHED]
Oracle 9.2.0
Oracle JRE 1.3.1_01
Tomcat 5.5 [COPIED ALL THE JDBC JAR FILES FROM ORACLE'S JDBC\lib
TO Tomcat 5.5\common\lib]
Test Environment2:[WORKS FINE]
Oracle 9.2.0
Weblogic 8.1sp3
The jsp:
<html> <body>
<%@ page language="java" %>
<%@ page import= "java.io.*, java.sql.*" %>
<%
//Load Driver
Class.forName("oracle.jdbc.driver.OracleDriver");
out.println("Driver loaded");
//Get Connection
Connection con= DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:century", "scott", "tiger");
out.println("Got Connected!!"+con);
%>
</body>
</html>
Error Log Trace of Tomcat:
Feb 5, 2007 4:45:33 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for
servlet jsp threw exception
java.lang.NullPointerException
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java)
at oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(DBAccess.java)
at oracle.jdbc.ttc7.TTC7Protocol.initNls(TTC7Protocol.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:214)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.jsp.Datafetch3_jsp._jspService(org.apache.jsp.Datafetch3_jsp:52)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)