Cannot add an XML resource to Exist DB

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mphare
Posts: 71
Joined: Fri Apr 30, 2004 8:00 pm
Location: Texas

Cannot add an XML resource to Exist DB

Post by mphare »

I can save a DTD to the eXist DB, but not an XML file..
I get:
Cannot save the file. 500 Internal Server Error for: http://mphhome5:8080/exist/webdav/db/te ... Events.xml
Any ideas for this?
--------------------------

- mike

GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876
mphare
Posts: 71
Joined: Fri Apr 30, 2004 8:00 pm
Location: Texas

Post by mphare »

It seems to have something to do with the

Code: Select all

<!DOCTYPE Section SYSTEM "file:///c:/mphare/Development/structured-fm/NMIE-Structured-Environment/NMIS/NMIS.dtd" [

<!-- Begin Document Specific Declarations -->

<?Fm Validation Off?>


<!-- End Document Specific Declarations -->

]>
If I remove this, it saves ok.

I've tried the explicit path to the disk, a relative path in the eXist database structure and a webdav URL. None seem to work. How should this DOCTYPE be declared?
--------------------------

- mike

GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

I get this error only when I try to save an XML file that declares a DTD with a relative path to an eXist database through WebDAV using the File -> Save to URL action in oXygen. Without the DTD declaration I can execute the save without getting an error. It is an eXist server problem. You can see a clear error message instead of Internal Server Error if you try to save the same XML file in the same location (the same eXist collection) using the Add resource action of the popup menu of the Database Explorer view on that collection. The error message is:

Code: Select all

Cannot save the file: FileNotFoundException: /home-dir/of/eXist-server/yourFile.dtd
That means the server resolves yourFile.dtd that you refer in the XML file relative to the eXist server home directory. It does not resolve it relative to the current eXist collection. That happens because you did not register your DTD on the server using a catalog file as specified in the eXist documentation.


Regards,
Sorin
mphare
Posts: 71
Joined: Fri Apr 30, 2004 8:00 pm
Location: Texas

Post by mphare »

Thanks!
--------------------------

- mike

GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876
Post Reply