jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Micah Whitacre (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1462) repository.xml: throw an exception on error
Date Tue, 23 Sep 2008 20:07:44 GMT

    [ https://issues.apache.org/jira/browse/JCR-1462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633868#action_12633868
] 

Micah Whitacre commented on JCR-1462:
-------------------------------------

I'm not sure I have permissions to reopen this bug but was advised to do so.  This bug seems
to have introduced the requirement that all repository.xml files specify a DOCTYPE.  If you
don't have a doctype specified you start seeing SAX Parse exceptions like the following:

org.xml.sax.SAXParseException: Document root element "Repository",
must match DOCTYPE root "null".
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
       at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1652)
       at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1931)
       at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:795)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
       at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:215)
       at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:214)
       at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:144)
       at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:118)

> repository.xml: throw an exception on error
> -------------------------------------------
>
>                 Key: JCR-1462
>                 URL: https://issues.apache.org/jira/browse/JCR-1462
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: configPatch.txt
>
>
> Currently, unsupported parameters in repository.xml and workspace.xml are ignored.
> To find problems earlier, such problems should result in an exception,
> and starting such a repository should not be possible.
> The same should happen for unsupported values.
> For currently unavailable options
> (such as text extraction filter classes if the class is not in the classpath),
> at least a warning should be written to the error log, or an error should be thrown.

-- 
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