• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

[OAS] Change jdbc driver

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I need to use the latest jdbc driver for Oracle 10g. So I add ojdbc14.jar available on the Oracle website to my /WEB-INF/lib directory.
I also add the following orion-web.xml file to /WEb-INF


But when I do that :


in a sample jsp it says that the loaded jdbc driver was the one provided by Oracle with the application server.
However if I delete the jdbc driver of OAS and replaces it by the ojdbc14.jar I received an unknown field exception when I try to connect to the db
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Xavier,
As far as I know, the name of the JDBC driver file is hard-coded in OC4J.
A "hack" (or "workaround", if you prefer :- ) would be to rename the "ojdbc14.jar" file to the file that OC4J recognizes: "classes12dms.jar", and then replace the actual "classes12dms.jar" file with your (renamed) "ojdbc14.jar" file. But I haven't done this myself, so I can't guarantee that it will work.

Why do you need the "ojdbc14.jar" JDBC driver? What does it have, that is not available in the "classes12dms.jar" driver? Perhaps the problem could be solved merely by upgrading your version of OC4J?

In case you are unaware, there are Oracle-related forums at Oracle's OTN Web site.

Good Luck,
Avi.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm also highly interested in a solution to this problem. The reason for this is we would like to try out the latest jdbc drivers with oc4j, however, as noted, the older drivers have been hard-coded into the oc4j release. The Oracle forum doesn't seem to have a solution either :\
 
reply
    Bookmark Topic Watch Topic
  • New Topic