db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiller, Frank RD-AS2" <Frank.Hil...@heidelberg.com>
Subject Location of repository.xml
Date Mon, 13 Jun 2005 17:57:51 GMT
Hi,
 
I'm using OJB 1.0.3 with Tomcat 5.0.28.
In my servlet I set 
System.setProperty("OJB.properties",
"D:/jakarta-tomcat-5.0.28/webapps/MyWebAppConfig/OJB.properties");
Doing this loads OJB.properties without problems.
But "repository.xml" is not found though it is located in the same
directory.
 
OJB is trying to load this file from "D:/jakarta-tomcat-5.0.28/bin".
Strange....
 
Here' the error message.
 
- OJB Descriptor Repository:
file:/D:/jakarta-tomcat-5.0.28/bin/repository.xml
- Building repository from
:file:/D:/jakarta-tomcat-5.0.28/bin/repository.xml
- No repository.xml file found, starting with empty metadata and
connection configuration
- No 'default-connection' attribute set in jdbc-connection-descriptors,
thus it's currently not possible to use 'defaultPersistenceBroker()'
convenience method to lookup PersistenceBroker instances.
But it's possible to enable this at runtime using 'setDefaultKey'
method.
- Could not find org.apache.ojb.broker.metadata.JdbcConnectionDescriptor
for PBKey org.apache.ojb.broker.PBKey: jcdAlias=default, user=null,
password=null
- # finalize DescriptorRepository instance #
org.apache.ojb.broker.PBFactoryException: Borrow broker from pool
failed, using PBKey org.apache.ojb.broker.PBKey: jcdAlias=default,
user=null, password=null
        at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer
sistenceBroker(Unknown Source)
        at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.createPersis
tenceBroker(Unknown Source)
        at
org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(U
nknown Source)
 
 
Thank you,
Frank


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message