I migrate my application from tomcat4.0 to websphere 3.5.
I use castor(0.94) in my application
but in websphere3.5,castor can not work
and throw exception as follow:
java.lang.NoSuchMethodError: org.apache.xerces.dom.NodeImpl: method <init>(Lorg/apache/xerces/dom/DocumentImpl
V not found
at org.apache.xerces.dom.ChildNode.<init>(ChildNode.java:103)
at org.apache.xerces.dom.ParentNode.<init>(ParentNode.java:133)
at org.apache.xerces.dom.DocumentImpl.<init>(DocumentImpl.java:254)
at org.apache.xerces.dom.DocumentImpl.<init>(DocumentImpl.java:247)
at org.apache.xerces.validators.dtd.DTDGrammar.callStartDTD(DTDGrammar.java:194)
at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1079)
at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2201)
at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2156)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:776)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.mapping.Mapping.loadMappingInternal(Unknown Source)
at org.exolab.castor.mapping.Mapping.loadMappingInternal(Unknown Source)
at org.exolab.castor.mapping.Mapping.loadMapping(Unknown Source)
I think this reason is xml parser's confliction,but how can do to
use apache's xml parser