Forums Register Login

switch from jdbc driver 10.x to 9.x

+Pie Number of slices to send: Send
I currently have the jdbc driver 10.x installed and I cannot get rid of it. I deleted every instance of ojdbc14.jar on the server. and I put classes12.jar in /$catalina_home/common/lib/ I stop tomcat restart apache and than start tomcat again. and every time a create a connection and run the following code:

DatabaseMetaData dmd = connection.getMetaData();
out.println("JDBC Driver version: " + dmd.getDriverVersion());

I get the following output:

JDBC Driver version: 10.1.0.3.0


please help me! :P thanks!
+Pie Number of slices to send: Send
I guess this must be classpath issue.

1. Check the PATH environment variable to make sure it doesn't contain any reference to Oracle installation directory.
2. Write a simple java class to print System.getProperty("java.class.path") and run this inside the tomcat.
3. Try setting the classes12.jar to bootclasspath using -Xbootclasspath:/p<classes12.jar path>
A magnificient life is loaded with tough challenges. En garde tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1063 times.
Similar Threads
loading Oracle drivers
DSN name not found error with TOMCAT5.5.7
Unsupported feature
Web Application Class Loader and Weblogic
setAutocommit
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:10:08.