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 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"
Joined: Aug 09, 2005
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.