I second this, i have OJB deployed with 6 apps running in my tomcat dev
server.  I never use shared libraries as it causes too much hassle - each
app has it's own OJB jar - and some are different versions.

If you've not got any shared jars, can you post a stack trace and a bit more
info about what happens?

Daniel.

> -----Original Message-----
> From: Charles Anthony [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2004 07:01
> To: 'OJB Users List'
> Subject: RE: OJB doesnt work with multiples context
>
>
> Hi Frank,
>
> Are your OJB jars stored in the WebApp itself, or in a shared
> directory e.g.
> tomcat\common ?
>
> Essentially, it's important that OJB classes be stored within the WebApp
> themselves, as opposed to anywhere else. e.g.
>
> App1
>    WEB-INF
>       lib
>         db-ojb-Blah.jar
>         all-the-other-OJB-dependencies
>       classes
>          your app classes.
>
> App2
>    WEB-INF
>       lib
>         db-ojb-Blah.jar
>         all-the-other-OJB-dependencies
>       classes
>          your app classes.
>
>
> This is to do with ClassLoader hierarchies - a confusing part of
> application
> servers, and a little too complex to explain here.
>
> If you *do* store the OJB jar etc in each webapp, the double check any
> shared librarires. I'd bet moderate amounts of money that the problem will
> be related to shared classes.
>
> Hope that's a pointer in the right direction
>
> Cheers,
>
> Charles
>
> > -----Original Message-----
> > From: Francisco Bruno [mailto:[EMAIL PROTECTED]
> > Sent: 23 November 2004 19:21
> > To: OJB Users List
> > Subject: Re: OJB doesnt work with multiples context
> >
> >
> > Sorry,
> > context == application on tomcat server.
> >
> > Ex.: App1
> >          WEB-INF
> >              classes
> >                  obj files
> >
> >      App2
> >          WEB-INF
> >              classes
> >                  obj files
> >
> > If i access the app1 first app2 doesnt work, but if try
> > access app2 then
> > app1 and app2 doesnt work
> >
> > [],
> > Francisco Bruno
> > --------------------------------------------------------------
> > ---------------------------------------------------
> > "Fa�a as coisas o mais simples que voc� puder, por�m n�o as
> > mais simples."
> > Albert Einstein
> >
> > ----- Original Message -----
> > From: "Pulat Yunusov" <[EMAIL PROTECTED]>
> > To: "OJB Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 23, 2004 4:13 PM
> > Subject: Re: OJB doesnt work with multiples context
> >
> >
> > > What is a "context"?
> > >
> > > Francisco Bruno wrote:
> > >> OJB doesn't work simultaneously with some contexts?
> > >> [],
> > >> Francisco Bruno
> > >>
> > --------------------------------------------------------------
> > ---------------------------------------------------
> > >> "Fa�a as coisas o mais simples que voc� puder, por�m n�o as mais
> > >> simples." Albert Einstein
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ___________________________________________________________
> 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]
>
>


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

Reply via email to