Actions
Bug #2393
closedConfiguration file example in the documentation contains errors
Start date:
2015-06-06
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:
Description
Tried using the configuration file example in the documentation but throws several warnings.
see:
http://www.saxonica.com/documentation/index.html#!configuration/configuration-file
Output I received:
Warning: on line 39 column 7 of configExample.xml:
Invalid configuration property global/@errorListener. Supplied value
'net.sf.saxon.StandardErrorListener'. Cannot use net.sf.saxon.StandardErrorListener as the
value of http://saxon.sf.net/feature/errorListenerClass. Failed to load
net.sf.saxon.StandardErrorListener
Warning: on line 39 column 7 of configExample.xml:
Invalid configuration property global/@uriResolver. Supplied value
'net.sf.saxon.StandardURIResolver'. Cannot use net.sf.saxon.StandardURIResolver as the
value of http://saxon.sf.net/feature/uriResolverClass. Failed to load
net.sf.saxon.StandardURIResolver
Warning: on line 71 column 7 of configExample.xml:
Invalid configuration property global/@moduleUriResolver. Supplied value
'net.sf.saxon.query.StandardModuleURIResolver'. Cannot use
net.sf.saxon.query.StandardModuleURIResolver as the value of
http://saxon.sf.net/feature/moduleURIResolverClass. Failed to load
net.sf.saxon.query.StandardModuleURIResolver
Warning: on line 78 column 7 of configExample.xml:
Invalid configuration property global/@schemaUriResolver. Supplied value
'com.saxonica.sdoc.StandardSchemaResolver'. Cannot use
com.saxonica.sdoc.StandardSchemaResolver as the value of
http://saxon.sf.net/feature/schemaURIResolverClass. Failed to load
com.saxonica.sdoc.StandardSchemaResolver
Warning: on line 93 column 95 of configExample.xml:
Invalid configuration property extensionFunction. Supplied value
's9apitest.TestIntegrationFunctions$SqrtFunction', required value is the name of a class
that implements 'net.sf.saxon.lib.ExtensionFunctionDefinition': Failed to load
s9apitest.TestIntegrationFunctions$SqrtFunction
Warning: net.sf.saxon.type.SchemaException: java.io.FileNotFoundException:
/c:/MyJava/samples/data/books.xsd (No such file or directory)
Warning: Failed to load net.sf.saxon.sort.CodepointCollator
Warning: Failed to load net.sf.saxon.sort.CodepointCollator
net.sf.saxon.s9api.SaxonApiException: Invalid configuration property global/@errorListener. Supplied value 'net.sf.saxon.StandardErrorListener'. Cannot use net.sf.saxon.StandardErrorListener as the value of http://saxon.sf.net/feature/errorListenerClass. Failed to load net.sf.saxon.StandardErrorListener
at net.sf.saxon.s9api.Processor.<init>(Processor.java:100)
at s9apitest.TestIntegratedFunctions.testConfigFile(TestIntegratedFunctions.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: net.sf.saxon.trans.XPathException: Invalid configuration property global/@errorListener. Supplied value 'net.sf.saxon.StandardErrorListener'. Cannot use net.sf.saxon.StandardErrorListener as the value of http://saxon.sf.net/feature/errorListenerClass. Failed to load net.sf.saxon.StandardErrorListener
at net.sf.saxon.trans.ConfigurationReader.error(ConfigurationReader.java:456)
at net.sf.saxon.trans.ConfigurationReader.applyProperty(ConfigurationReader.java:282)
at net.sf.saxon.trans.ConfigurationReader.readGlobalElement(ConfigurationReader.java:240)
at net.sf.saxon.trans.ConfigurationReader.startElement(ConfigurationReader.java:168)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.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.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at net.sf.saxon.trans.ConfigurationReader.makeConfiguration(ConfigurationReader.java:96)
at com.saxonica.config.ProfessionalConfiguration.readConfigurationFile(ProfessionalConfiguration.java:161)
at net.sf.saxon.Configuration.readConfiguration(Configuration.java:310)
at net.sf.saxon.s9api.Processor.<init>(Processor.java:97)
Please register to edit this issue
Actions