Project

Profile

Help

Bug #2393

closed

Configuration file example in the documentation contains errors

Added by O'Neil Delpratt over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Sprint/Milestone:
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)
Actions #1

Updated by O'Neil Delpratt over 9 years ago

  • Found in version changed from 9.5 9.6 to 9.6

The StandardErrorListener and StandardURIResolver have moved to the net.sf.saxon.lib package

com.saxonica.sdoc.StandardSchemaResolver should be com.saxonica.config.ee.StandardSchemaResolver

net.sf.saxon.sort.CodepointCollator should now be net.sf.saxon.expr.sort.CodepointCollator

Actions #2

Updated by Debbie Lockett over 9 years ago

Also net.sf.saxon.query.StandardModuleURIResolver changed to net.sf.saxon.lib.StandardModuleURIResolver

These corrections have now been applied to the online documentation for 9.6 (XML and HTML versions).

StandardErrorListener also needs to be corrected in the samples (in saxon-resources) config.xml and config-HE.xml

Actions #3

Updated by Debbie Lockett over 9 years ago

  • Status changed from New to Resolved

The minor correction (for StandardErrorListener) has also been made to the samples in the 9.6 archive.

Actions #4

Updated by O'Neil Delpratt over 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.7

Bug fix applied in the Saxon 9.6.0.7 maintenance release.

Actions #5

Updated by O'Neil Delpratt almost 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.7 added
Actions #6

Updated by O'Neil Delpratt almost 9 years ago

  • Sprint/Milestone set to 9.6.0.7

Please register to edit this issue

Also available in: Atom PDF