Re: starting ojb

2004-12-10 Thread Łukasz Korzybski
Dnia piątek, 10 grudnia 2004 10:26, [EMAIL PROTECTED] napisał:

Hi, 

Did you put repository.dtd file into this folder?

Regards.

> I have always the same problem. I have put the needed xml files in the
> folder where my application is. but there is the same mistake.
>
> [JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
> org.apache.ojb.broker.PBFactoryException: There was no default-PBKey
> specified
> at
> org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersiste
>nceBroker(Unknown Source)
> at
> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unk
>nown Source)
> at org.apache.ojb.jdori.sql.OjbStoreConnector.begin(Unknown
> Source)
> at com.sun.jdori.common.TransactionImpl.beginInternal(Unknown
> Source)
> at com.sun.jdori.common.TransactionImpl.begin(Unknown Source)
> at org.myProject.appli.Demo.storing(Demo.java:97)
> at org.myProject.appli.Demo.main(Demo.java:110)
> Exception in thread "main"
>
> which information do you need to get an idea where the mistake is.?
>
>
> regards
>
>
> Michael

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



RE: starting ojb

2004-12-10 Thread Charles Anthony
Hi Michael,

You said earlier "I have put the needed xml files in the folder where my
application is" - could you please be a little clearer ?

Could you show us the folder layout - i.e. where the classes are, where the
xml files are, what the names of the xml files are, and what the
working/current directory is when the application is run ?

By default, OJB will look for a file called "repository.xml" - it will first
look for a resource on the classpath - and if that fails, it will look in
the file file system. 

Also, I would suggest turning on some logging (see
http://db.apache.org/ojb/docu/guides/logging.html) for more info. The
RepositoryPersistor class actually logs which file it is loading.

I hope that helps a little

Cheers,

Charles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 09:57
To: OJB Users List
Subject: RE: starting ojb


Yes i did it. This is the part of my repository_database.xml





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


RE: starting ojb

2004-12-10 Thread Michael . Sack
Yes i did it. This is the part of my repository_database.xml





RE: starting ojb

2004-12-10 Thread Ribi Roland
Did you set the following in one jdbc-connection-descriptor:


default-connection="true"  


example:
   

Roland Ribi

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 10, 2004 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: starting ojb
> 
> 
> I have always the same problem. I have put the needed xml 
> files in the 
> folder where my application is. but there is the same mistake.
> 
> [JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
> org.apache.ojb.broker.PBFactoryException: There was no default-PBKey 
> specified
> at 
> org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.de
> faultPersistenceBroker(Unknown 
> Source)
> at 
> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersiste
> nceBroker(Unknown 
> Source)
> at org.apache.ojb.jdori.sql.OjbStoreConnector.begin(Unknown 
> Source)
> at com.sun.jdori.common.TransactionImpl.beginInternal(Unknown 
> Source)
> at com.sun.jdori.common.TransactionImpl.begin(Unknown Source)
> at org.myProject.appli.Demo.storing(Demo.java:97)
> at org.myProject.appli.Demo.main(Demo.java:110)
> Exception in thread "main" 
> 
> which information do you need to get an idea where the mistake is.?
> 
> 
> regards 
> 
> 
> Michael
> 

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