Re: Problems with OJB in a servlet container

2003-06-23 Thread Mark Striebeck
Daniel,

THANKS!

Works like a charm.

Ciao
   MarkS
Daniel Wroblewski wrote:

I had a similar problem with OJB in Resin. By setting some system
properties, overriding the default XML parsers loaded by resin, I got it to
work. You can set system properties in a number of ways, I choose to do it
in the resin configuration file, resin.conf. Try adding the following before
the http-server-node: 

system-property javax.xml.transform.TransformerFactory=
org.apache.xalan.processor.TransformerFactoryImpl/
system-property javax.xml.parsers.DocumentBuilderFactory=
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property javax.xml.parsers.SAXParserFactory=
org.apache.xerces.jaxp.SAXParserFactoryImpl/
/Daniel

 

From: Charles Anthony [mailto:[EMAIL PROTECTED] 
Sent: den 20 juni 2003 12:13
To: 'OJB Users List'

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]
   



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



RE: Problems with OJB in a servlet container

2003-06-22 Thread Daniel Wroblewski
I had a similar problem with OJB in Resin. By setting some system
properties, overriding the default XML parsers loaded by resin, I got it to
work. You can set system properties in a number of ways, I choose to do it
in the resin configuration file, resin.conf. Try adding the following before
the http-server-node: 

system-property javax.xml.transform.TransformerFactory=
 org.apache.xalan.processor.TransformerFactoryImpl/
system-property javax.xml.parsers.DocumentBuilderFactory=
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property javax.xml.parsers.SAXParserFactory=
 org.apache.xerces.jaxp.SAXParserFactoryImpl/


/Daniel

 From: Charles Anthony [mailto:[EMAIL PROTECTED] 
 Sent: den 20 juni 2003 12:13
 To: 'OJB Users List'
 
 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]
 



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



RE: Problems with OJB in a servlet container

2003-06-20 Thread Charles Anthony
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]



Re: Problems with OJB in a servlet container

2003-06-20 Thread Alexander Prozor
Maybe you use xalan lib different from OJB original version?
it can't parse URL to repository.xml file.
OJB don't put XMLreader.parse method in try/catch block so you will
not be able to see real situation in the log files :(.
-- 
Best regards,
 Alexandermailto:[EMAIL PROTECTED]


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



RE: Problems with OJB in a servlet container

2003-06-20 Thread Rob Kischuk
I have seen this first hand - if you have other XML parser versions that are
loading in your JVM, it can and will often keep your repository from being
properly parsed.  In particular, I saw that it often would be unable to
resolve the location of the repository.dtd, even when it was clearly in the
classpath.  Make sure nothing else is in your jre/lib/ext first, then make
sure your parses versions match those released with OJB.

-Rob

-Original Message-
From: Alexander Prozor [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 6:14 AM
To: OJB Users List
Subject: Re: Problems with OJB in a servlet container

Maybe you use xalan lib different from OJB original version?
it can't parse URL to repository.xml file.
OJB don't put XMLreader.parse method in try/catch block so you will
not be able to see real situation in the log files :(.
-- 
Best regards,
 Alexandermailto:[EMAIL PROTECTED]


-
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]



RE: Problems with OJB in a servlet container

2003-06-20 Thread Malinescu, Cristian
Hi
We are using OJB in WebLogic and Tomcat without problems,
and we use always the java sdk/vm 1.4.1 for including the 
default XML parser of the standard 1.4.1 API. Can you verify what 
version of JVM you use ?
Regards,
Cristian

-Original Message-
From: Charles Anthony [mailto:[EMAIL PROTECTED]
Sent: Freitag, 20. Juni 2003 12:13
To: 'OJB Users List'
Subject: RE: Problems with OJB in a servlet container 


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]

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