File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes ojdbc driver problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ojdbc driver problem" Watch "ojdbc driver problem" New topic
Author

ojdbc driver problem

Jason Soper
Greenhorn

Joined: Sep 01, 2009
Posts: 7
Hi Guys,

I have a problem with a web application connecting to Oracle. The application (currently) uses code like this:



to connect.

It's running on tomcat 6, java 6, connecting to Oracle 10.1.0.3.

I was using the java 6 Oracle drivers (ojdbc6.jar), as I am with other web apps we have (they use spring / hibernate to manage connections). This doesn't work with ojdbc6.jar and fail with error 'java.sql.SQLException: OAUTH marshaling failure'. It does work if I use the java 1.4 drivers (ojdbc14.jar).

If I take the code above and put it into a standalone java app, ie:



It works with either driver.

anyone got any suggestions? I need to get this working with the java 6 drivers as that's what we have in our production environment (and it's what all our other apps use).

thanks,

Jason
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

I think you want

oracle.jdbc.OracleDriver

instead of

oracle.jdbc.driver.OracleDriver
Jason Soper
Greenhorn

Joined: Sep 01, 2009
Posts: 7
Tim McGuire wrote:I think you want

oracle.jdbc.OracleDriver

instead of

oracle.jdbc.driver.OracleDriver


Hi,

Thanks for the reply.

I've tried this and still get the same error. Here's the full stack trace if that helps:



The code from my first post is in the setDatabaseConnection() method of the net.scee.jsid.connections.JDBCConnection class.

Thanks,

Jason
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ojdbc driver problem