Hi Mark,

There's some kind of bizarre synchronicity going on here....

I was just trying my OJB Webapp in Resin for the first time (minutes ago),
and I got exactly the same problem. It runs fine in Tomcat, and we've had it
going in Websphere too.

I've got a hunch that it may have something to do with a XML
parser/classpath issue, but I could be speaking complete rubbish.

So, I don't think you've missed anything obvious. I can't offer anything
more concrete than that, I'm afraid, and as my knowledge of Resin is rather
less than nothing, I'm not sure I can spend alot of time investigating it
right now.

Has anyone else using OJB + Resin got any hints for us ?

Cheers,

Charles.

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: 20 June 2003 11:00
>To: OJB Users List
>Subject: Problems with OJB in a servlet container 
>
>
>Hi,
>
>I'm new to the world of JDO and OJB, so please bear with me if this is
>stupid/straightforward.
>
>I want to use OJB in a servlet container. I wrote a small 
>(standalone) test
>application to do all the configuration and such. That one works.
>
>I now tried to move everything into a servlet WAR:
>
>- the OJB.properties and repository*.xml files in WEB-INF/classes
>- all libraries in WEB-INF/lib
>- the code from the standalone app (just creating and 
>retrieving an object) into
>a java bean that I call from a servlet
>
>But I get a
>
>java.lang.ExceptionInInitializerError
>    at
>org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.
>buildDefaultKey(Unknown
>Source)
>    at
>org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.
><init>(Unknown
>Source)
>    ...
>
>Is there anything obvious that I'm missing (should any 
>libraries or config files
>be in the servlet containers lib dir)? What is the best way to 
>debug this?
>
>Thanks
>    MarkS
>
>P.S: I'm using Resin.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



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

Reply via email to