OJB: Can’t read repository file ‘repository.xml’

When getting this error when trying to access a database configured with OJB, then check the XML-files referenced by the repository.xml file. If you find a XML-header then remove it and it should work fine again.

I had the problem when I wanted to dynamically change the repository_database.xml file and then tried to access the MetadataManager, which accessed the configuration file(s).  When I wrote the XML file with the TransformerFactory I had to do the following to remove the header:

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + = thirteen

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">