How to override TOMCAT Oracle ojdbc14 driver in the application?

Posted by Luís Henrique Rocha on Stack Overflow See other posts from Stack Overflow or by Luís Henrique Rocha
Published on 2010-05-03T21:20:08Z Indexed on 2010/05/03 21:28 UTC
Read the original article Hit count: 418

Filed under:
|
|
|
|

The TOMCAT server is using an Oracle 9G ojdbc14 driver to its jndi connections in the /common/lib folder.

My web application uses Maven + Spring and I'm getting the dataSource using Spring jndi features.

I'm trying to bypass TOMCAT old ojdbc14 driver with a newer one (ojdbc14 10.2.0.4.0). I've tried putting the jars in the WEB-INF/lib folder as a project dependency, but it doesn't work the application keeps using the old oracle driver that is in the TOMCAT folder.

I'm trying to bypass the TOMCAT oracle driver because I cannot update it to the newest version because there are lots of other projects using it.

Does anyone have a clue?

© Stack Overflow or respective owner

Related posts about tomcat5.5

Related posts about ojdbc