Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Migration( from Weblogic to Websphere) problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am migrating one of our J2EE application developed on
Weblogic Application server to Websphere server .
I am facing a typical problem .
The application uses xerces.jar for XML parsing during
the file upload .I kept this jar file into a folder name
'Import' under default_app/Servlets/ along with all other
jar files e.g. mail.jar,jms.jar etc.The jar folder is in
websphere classpath.The application recognizes all other
jar files .But it raises following error :
org.apache.xerces.dom.NodeImpl: method (Lorg/apache/xerces/dom/DocumentImpl V not found
during it's call to the method :
public Document getXMLDoc(String p_processFlowXML){
DOMParser l_parser = new DOMParser();
Document l_xmlDoc = null;
try {
l_parser.parse ( new InputSource ( new StringReader (p_processFlowXML ) ) );
l_xmlDoc = l_parser.getDocument();
}
If anybody of you are aware of such problem , I'll appreciate
if you can send me the solution .
Thanks in advance.
Purushottam
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that the xerces.xml you are using in your web application is newer than the one used by Websphere.
To force the use of YOUR xerces.jar, you need to manually change the classpath.
To do so, edit the admin.config file that is in the /bin directory of Websphere, then prefix the adminserver.classpath property by the reference to your xerces.jar, and it will work.
Valery

Originally posted by purushottam joshi:
Hi
I am migrating one of our J2EE application developed on
Weblogic Application server to Websphere server .
I am facing a typical problem .
The application uses xerces.jar for XML parsing during
the file upload .I kept this jar file into a folder name
'Import' under default_app/Servlets/ along with all other
jar files e.g. mail.jar,jms.jar etc.The jar folder is in
websphere classpath.The application recognizes all other
jar files .But it raises following error :
org.apache.xerces.dom.NodeImpl: method (Lorg/apache/xerces/dom/DocumentImpl V not found
during it's call to the method :
public Document getXMLDoc(String p_processFlowXML){
DOMParser l_parser = new DOMParser();
Document l_xmlDoc = null;
try {
l_parser.parse ( new InputSource ( new StringReader (p_processFlowXML ) ) );
l_xmlDoc = l_parser.getDocument();
}
If anybody of you are aware of such problem , I'll appreciate
if you can send me the solution .
Thanks in advance.
Purushottam


 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic