• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

I can not use castor in websphere3.5

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can package the required jar files in your application classpath (i.e., web/WEB-INF/lib). Don't place them in WebSphere's global classpath as they will conflict with IBM's...
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic