Hi Beno�t d'Oncieu
Thanks for your immediate reply. Actually this applcation is running fine in VAJ environment with the IBMParser.jar. This Jar file is having the org.apache.xerces.dom.DocumentImpl class.
But now I am trying to migrate this application to WSAD. In WSAD, runtime library, this is having different jar file (Xerces.jar). This Jar file is also having same package Structure. So what I did is I removed the Xerces.jar from the Runtime library and added IBMParser.jar and I tried. For that case also it is failing at adoptNode() method. And I tried to include the Xerces.jar which is coming along with WSAD in the runtime library and application library. Still I am getting the same problem. I don't know why it is ..? I am really confused and I don't know how to proceed with.
Please have a look on the the following code and if you have any suggestion please tell me.
org.apache.xerces.dom.DocumentImpl xmlDoc=(org.apache.xerces.dom.DocumentImpl)this.iO_OriginalXMLDoc;
xmlDoc.adoptNode((Node)vO_newElement);
//xmlDoc.appendChild((Node)vO_newElement);
//Node tmpNode = xmlDoc.importNode((Node)vO_newElement,true);
Node tmpNode=this.iO_CurrentNode.insertBefore(vO_newElement,vO_refElement);
if (vb_MoveToChild) {
this.iO_CurrentNode = tmpNode;
}
The Exception is:
ExceptionUtil X CNTR0020E: Non-application exception occurred while processing method respondToRq on bean BeanId(BP#BPEJB.jar#FdpsXMLRqMgr, null): java.lang.NoSuchMethodError: org.apache.xerces.dom.DocumentImpl: method adoptNode(Lorg/w3c/dom/Node
V not found
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
com.ibm.ejs.container.UncheckedException: ; nested exception is:
java.lang.NoSuchMethodError: org.apache.xerces.dom.DocumentImpl: method adoptNode(Lorg/w3c/dom/Node
V not found
com.ibm.ejs.container.UncheckedException: ; nested exception is:
java.lang.NoSuchMethodError: org.apache.xerces.dom.DocumentImpl: method adoptNode(Lorg/w3c/dom/Node
V not found
java.lang.NoSuchMethodError: org.apache.xerces.dom.DocumentImpl: method adoptNode(Lorg/w3c/dom/Node
V not found
The place it is getting failed in the above code is:
xmlDoc.apoptNode(Node) Thanks,
Shanmugam.