commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-37) [configuration] DOMConfiguration can't replace DOM4JConfiguration
Date Wed, 25 Apr 2007 22:38:15 GMT

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

Emmanuel Bourg updated CONFIGURATION-37:
----------------------------------------

    Fix Version/s: 1.0

> [configuration] DOMConfiguration can't replace DOM4JConfiguration
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-37
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-37
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Emmanuel Bourg
>             Fix For: 1.0
>
>
> I tried to replace DOM4JConfiguration in the ConfigurationFactory with
> DOMConfiguration:
> @@ -281,7 +281,7 @@
>          setupDigesterInstance(
>              digester,
>              matchString + "dom4j",
> -            new BasePathConfigurationFactory(DOM4JConfiguration.class),
> +            new BasePathConfigurationFactory(DOMConfiguration.class),
>              METH_LOAD,
>              additional);
>          setupDigesterInstance(
> But one test breaks in TestConfigurationFactory:
> Testcase:
> testAllConfiguration(org.apache.commons.configuration.TestConfigurationFactory):	Caused
> an ERROR
> SAX Exception caught
> org.apache.commons.configuration.ConfigurationException: SAX Exception caught
> 	at
> org.apache.commons.configuration.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:164)
> 	at
> org.apache.commons.configuration.TestConfigurationFactory.testAllConfiguration(TestConfigurationFactory.java:229)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> Caused by: org.apache.commons.configuration.ConfigurationException: Could not
> load from
> D:\dev\apache\jakarta-commons\configuration\file:\D:\dev\apache\jakarta-commons\configuration\conf\testDigesterConfiguration3.xml\test.xml
> 	at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
> 	at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
> 	at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> 	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.commons.digester.Digester.parse(Digester.java:1567)
> 	at
> org.apache.commons.configuration.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:158)
> 	... 15 more

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message