Hi All,

We are using xerces 2.1.0 for one of our project. We have run into a very
strange problem. We have a web application that involves parsing an XML,
which is validated based on an XML schema. The application is built on
Tomcat and apache. We have deployed this application on 4 servers - 3 test
and one production. The application works fine on all the 3 test servers,
but throws a NoSuchMethodError Exception, when used on the production
server. We tested a sample java program (dom.Counter) which comes in
xercessamples.jar on the production server, but the same result. We ve
removed all other paths and jars from the classpath except xercesImpl.jar,
xmlparsers.jar & xercessamples.jar. We had faced this problem in an earlier
version of xerces, so tried to move our application to the latest version.
Even in the earlier version, we used to get the NoSuchMethodError exception.
I am attaching the exception also with the mail. The test program works when
just validation is turned on, but fails when schema validation is turned on.
In the test servers, the same sample works fine in both the cases.

 D:\Server\Builds\2002-09-11\testXMLjava dom.Counter -s -v try.xml
 Exception in thread "main" java.lang.NoSuchMethodError
 at org.apache.xerces.util.DOMUtil.getLocalName(DOMUtil.java:690)
 at
org.apache.xerces.impl.xs.traversers.XSAttributeChecker.resolveNamespace(XSA
ttributeChecker.java:1677)
 at
org.apache.xerces.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAt
tributeChecker.java:1018)
 at
org.apache.xerces.impl.xs.traversers.XSAttributeChecker.checkAttributes(XSAt
tributeChecker.java:996)
 at
org.apache.xerces.impl.xs.traversers.XSDocumentInfo.<init(XSDocumentInfo.jav
a:127)
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.ja
va:498)
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:
386)
 at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:49
0)
 at
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaVali
dator.java:2287)
 at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaVal
idator.java:1781)
 at
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator
.java:588)
 at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin
der.java:877)
 at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja
va:569)
 at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java
:727)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:759)
 at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem
entHook(XMLDocumentScannerImpl.java:957)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:191)
 at dom.wrappers.Xerces.parse(Xerces.java:104)
 at dom.Counter.main(Counter.java:386)

 Please help !!!

 Thanks & Regards,
 Navin Nair



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

Reply via email to