Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with different oracle JDBC drivers

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have Jboss-3.5.2 installed on my machine and i have different web applications deployed on it as .war files. Some of the applications connect with Oracle 8i databases whereas some of them needs to connect with Oracle 10g.

Every web app has its own oracle jdbc driver in its class path. But as jdbc drivers are different for 8i and 10g, so it creates problem when i deploy all these applications at the same time on the AS.

I think JBoss loads one of the driver classes and use it for all the connections to be made by all the applications.

Can anybody tell me how can i get rid of this problem? how can i run both applications with oracle 8i and 10g at the same time?

Thanks in advance
 
KArol Muszynski
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ali,

maybe this tip will be helpful http://www.devx.com/tips/Tip/29164

Best Regards,
KArol Muszynski
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply, i have tried that solution but i am using JNDI Connection pooling through JBOSS JNDI Connection Pooling and i am getting the error that No class definition found "com.piratepete.jndi.JndiUtil"

any idea?

Thanks
 
KArol Muszynski
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ali,

is "com.piratepete.jndi.JndiUtil" class yours ? Or it comes from outside package !?

Remember to put all jars required by Your application to WEB-INF/lib folder in You war file. After changing this parameter, JBoss uses different classloader mechanism.

Best Regards,
KArol Muszynski
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic