Well, it started working.
I did not have the DTD in the directory. But I wasn't looking for it either. My repository.xml file is pointing at http://db.apach.org.... Maybe it wasn't being read correctly from the server? Maybe we have some weird firewall stuff going on?
And, I didn't have any of those xml jars. Now I have 3: xerces-2.4.0.jar, xercesImpl-2.4.0.jar and xml-apis.2.0.2.jar.
So one of those two things fixed the problem. Whichever one it was, I really don't care. All I care about is that I can go home now.
Thanks so much for your help Martin, it made all the difference.
Charlie
Martin Kal�n said the following on 3/17/2005 8:26 PM:
Charles N. Harvey III wrote:
I am using the binary release of OJB 1.0.1. And I don't know which XML parser I am using. I don't even know where to specify that. The only xml processing jar in my classpath is dom4j. Should something else be there?
I just put xerces-2.4.0 in the WEB-INF/lib/ to no avail. Same error.
And I am running in DEBUG because it was failing, not the other way around
;)
I just did a local test of what happens when i rip repository.dtd out of my JAR in Tomcat. Same error message, which might be the source of recent confusion...
So; do you have the repository.dtd handy in your CLASSPATH?
If not:
java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
But unfortunately the error reported from OJB is: "MetadataException: Can not read repository repository_database.xml"
Regards, Martin
P.S. OJB does not use dom4j, I assume you have Xerces in a common/endorsed lib location and/or in your JDK. It should not matter too much which version though, just interesting for trying to reproduce your particular set-up.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
