I have a problem with a web application connecting to Oracle. The application (currently) uses code like this:
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).