Where do you keep your OJB.properties and repository.xml files?
phil.
INFO (2004-06-23) 17:17:25.094 org.apache.ojb.broker.metadata.RepositoryPersistor : OJB Descriptor Repository: file:/C:/jakarta-tomcat-5.0.18/webapps/cct/WEB-INF/classes/repository.xml
INFO (2004-06-23) 17:17:25.094 org.apache.ojb.broker.metadata.RepositoryPersis
tor : Building repository from : file:/C:/jakarta-tomcat-5.0.18/webapps/cct/WEB-INF/classes/repository.xml
DEBUG (2004-06-23) 17:17:25.094 org.apache.ojb.broker.metadata.RepositoryPersis
tor : RespostoryPersistor using SAXParser : org.apache.xerces.jaxp.SAXParserImpl
DEBUG (2004-06-23) 17:17:25.124 org.apache.ojb.broker.metadata.RepositoryXmlHandler : startDoc
INFO (2004-06-23) 17:17:25.124 org.apache.ojb.broker.metadata.MetadataManager
: No repository.xml file found, starting with empty metadata and connection configuration
INFO (2004-06-23) 17:17:25.124 org.apache.ojb.broker.metadata.MetadataManager
: 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.
Thomas Dudziak wrote:
WHIRLYCOTT wrote:
I just ran a little test here. I put some invalid markup at the beginning of my repository.xml file in order to see if I would get an error message about it not being parsed correctly, and I did.
So it appears that the repository.xml file is being read.
But this is quite puzzling, because my OJB.properties and repository.xml files are indeed working when I run my code inside Eclipse.
Still puzzled. Anyone have any ideas I could try?
Please set the log level of the repository handler to INFO or DEBUG. Somewhere in the properties file there is a line
org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN
simply replace the WARN with DEBUG, and you should see a bit more info about the repository.xml parsing. You could also set the default log level to INFO to get more info.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Whirlycott Philip Jacob [EMAIL PROTECTED] http://www.whirlycott.com/phil/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
