Hi,

I experienced the following trouble:

I'm using XInclude in my application with latest Xerces (2.7.1) via
dom4j on jdk1.4.2_08.

While the junit tests (in fork mode) I have the following exception :
org.xml.sax.SAXNotRecognizedException: Feature
'http://apache.org/xml/features/xinclude' is not recognized.
   at org.apache.xerces.parsers.AbstractSAXParser.getFeature(Unknown Source)
   at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setFeature(Unknown
Source)
   at org.dom4j.io.SAXReader.setFeature(SAXReader.java:218)
   at
com.sharedvalue.hrtransfert.configuration.ConfigurationHolder.init(ConfigurationHolder.java:324)
...

In my test I write the version of Xerces with
org.apache.xerces.impl.Version.getVersion() that returns 2.7.1.

But after a long research, I notice (running maven -X) that test-plugin
had xerces-2.4.0.jar at the end of the classpath when forking.

Unfortunately, it seems that it's this jar that cause all troubles (and
as getVersion() does not exist in xerces-2.4.0, my test show the "wrong"
version).

Is there a solution to this problem ?

Thanks in advance,

-eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to