I have this in my OJB.properties file:

        repositoryFile=repository.xml

I purposely put some jibberish in the repository.xml file earlier on and I did indeed get an exception indicating that there was a problem reading the file. Based on this, I am assuming that the file is accessible and is being read.

I also know that the repository.xml file is valid because when I run my test cases inside Eclipse, I'm able to insert/update/select/delete from the database using the default connection.

It's very odd, but I'm thinking that there is a bug somewhere in the OJB code that loads the file. I started poking around the source earlier on and will try to get into it more later.

If you have more ideas, I'd love to hear them and try them out.

phil.

Thomas Dudziak wrote:

WHIRLYCOTT wrote:

The pathnames below that point to the repository.xml file are correct. Apart from that, the error messages aren't very useful.

Where do you keep your OJB.properties and repository.xml files?


The place should be ok for both 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


Here's the problem: either OJB does not find the repository.xml file, or it could not read/parse the file because of some parsing error (though that should have resulted in an exception).
Is the filename stated a couple of lines above correct ? What repository location did you specify in your OJB.properties: 'repository.xml' or 'file:/C:/jakarta-tomcat-5.0.18/webapps/cct/WEB-INF/classes/repository.xml' (the former should suffice) ?


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]



Reply via email to