I think you'll find that putting OJB in /common/lib is your problem.

Try putting the the OJB jars in the each webapps WEB-INF/lib directory, and
see if the problem goes away.
I think it will.

Cheers,

Charles.

> -----Original Message-----
> From: Michael Mogley [mailto:[EMAIL PROTECTED]
> Sent: 09 December 2003 07:29
> To: OJB Users List
> Subject: ojb mixing up jdbc-connection-descriptors
> 
> 
> OK, I've got two Tomcat webapps.  Each with it's own 
> OJB.properties and repository xml files defining two 
> different mappings and two different connection descriptors.
> 
> Ojb libraries are in common/lib to allow sharing among webapps.
> 
> Everything was working file until I added the second webapp.
> 
> Now, observing the logs, it seems the first webapp is getting 
> the broker corresponding to the connection-descriptor in the 
> second one.  In both apps, I do 
> PersistenceBroker.defaultBrokerInstance() to obtain the 
> brokers.  I tried giving each connection-descriptor a unique 
> jcd-alias, but to no avail.  Actually, that's how I 
> discovered what the problem is.
> 
> How do I tell Ojb to reference the connection-descriptor 
> defined for a specific webapp?  This seems like a 
> classloading issue.  Perhaps, there is a place in the Ojb 
> code without a needed Thread.getContextClassLoader() call?
> 
> Please help.  I'm running out of time debugging Ojb issues.
> 
> Michael
> 


___________________________________________________________
HPD Software Ltd. - Helping Business Finance Business
Email terms and conditions: www.hpdsoftware.com/disclaimer 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to