• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with different oracle JDBC drivers

 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic