This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ojdbc driver problem

 
Jason Soper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you want

oracle.jdbc.OracleDriver

instead of

oracle.jdbc.driver.OracleDriver
 
Jason Soper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic