Connection Polling in Oracle 10g Using NetBeans ID
Satyajeet Kadam
Ranch Hand
Joined: Oct 19, 2006
Posts: 202
posted
0
I am facing the problem while connecting to oracle10g using DataSource approach.I am using classes12.jar in my classpath. I am able to connect to database if i harcode the values in JSP.
I am getting error as follows
Source code
Index.jsp
I am able to get connection and retrive the results properly if i hadcode the values.I have commented this code.
Web.xml
context.xml
Please help me
Satyajeet Kadam
Ranch Hand
Joined: Oct 19, 2006
Posts: 202
posted
0
PLease let me know if a anybody knows the solution
Ireneusz Kordal
Ranch Hand
Joined: Jun 21, 2008
Posts: 423
posted
0
Hi,
your code uses this driver:
// Class.forName("oracle.jdbc.driver.OracleDriver");// driver
For Oracle 9i onwards you should use oracle.jdbc.OracleDriver rather than oracle.jdbc.driver.OracleDriver as Oracle have stated that oracle.jdbc.driver.OracleDriver is deprecated and support for this driver class will be discontinued in the next major release.