jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-833) Error when adding XML file with relative DTD path defined.
Date Thu, 12 Apr 2007 07:42:32 GMT

     [ https://issues.apache.org/jira/browse/JCR-833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-833.
-------------------------------

    Resolution: Invalid

The JCR API allows you to do an XML import using either by passing the XML document as an
InputStream or by feeding the document as SAX events to a ContentHandler instance.

In this case it sounds like you're using the InputStream alternative, which doesn't give the
XML parser any indication where to look for relative references. The default is to use the
current directory, which in your case is different from the directory that contains the XML
document.

You can either replace the relative DTD reference with an absolute URI or use the ContentHandler
approach where you can explicitly set the base URI of the XML parser.

I'm resolving this issue as Invalid since it's seems to be more a client issue than a Jackrabbit
problem.

> Error when adding XML file with relative DTD path defined.
> ----------------------------------------------------------
>
>                 Key: JCR-833
>                 URL: https://issues.apache.org/jira/browse/JCR-833
>             Project: Jackrabbit
>          Issue Type: Bug
>    Affects Versions: 1.2.3
>         Environment: Windows XP Professional
> JBoss 4.0.5
>            Reporter: thierry lach
>
> I'm trying to load some XML files into jackrabbit.  These files have the following doctype
for their DTD.
> <!DOCTYPE SurveyList SYSTEM "surveylist_1_0.dtd">
> I have defined my survey repository under Windows "Network Places".
> When I try to add the XML files, I get an error from Windows "An error occured copying
some or all of the selected files", and the JBoss log has the message:
> jvm 1    | 05.04.2007 13:18:25 *ERROR* DavResourceImpl: Error while importing resource:
java.io.FileNotFoundException: C:\jboss-4.0.5\bin\surveylist_1_0.dtd (DavResourceImpl.java,
line 522)
> The dtd does in fact exist in the folder that I am attempting to copy the file into.
> It appears that the dtd file is resolved relative to the launch directory of JBoss (which
is the current directory) as opposed to the directory in which the file is found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message