0 Replies Latest reply: Feb 13, 2008 10:22 AM by 513500 RSS

    getting no such method error   when calling  getEnvelope()

    513500
      I getting this error
      java.lang.NoSuchMethodError: org.apache.xerces.dom.ElementNSImpl.<init>(Lorg/apache/xerces/dom/CoreDocumentImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

           at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.<init>(ElementImpl.java:45)
           at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:40)
           at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:49)
           at com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(Envelope1_1Impl.java:34)
           at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEmptyEnvelope(SOAPPart1_1Impl.java:39)
           at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:78)

                SOAPPart sp = message.getSOAPPart();
                SOAPEnvelope envelope = sp.getEnvelope();
      when I call the getEnvelope() method I get this message.

      If this is problem because of wrong jar files please guide mew what jar files I must use I am using jdk 1.4
      these are the jar fiels I am using

           <classpathentry kind="lib" path="lib/log4j.jar"/>
           <classpathentry kind="lib" path="lib/xerces.jar"/>
           <classpathentry kind="lib" path="lib/xercesImpl.jar"/>
           <classpathentry kind="lib" path="lib/jdom.jar"/>
           <classpathentry kind="lib" path="lib/activation.jar"/>
           <classpathentry kind="lib" path="lib/classes12.jar"/>
           <classpathentry kind="lib" path="lib/commons-logging-api.jar"/>
           <classpathentry kind="lib" path="lib/j2ee_small_version.jar"/>
           <classpathentry kind="lib" path="lib/jakarta-regexp-1.2.jar"/>
           <classpathentry kind="lib" path="lib/jaxp.jar"/>
           <classpathentry kind="lib" path="lib/jaxp-api.jar"/>
           <classpathentry kind="lib" path="lib/saaj-api.jar"/>
           <classpathentry kind="lib" path="lib/saaj-impl.jar"/>
           <classpathentry kind="lib" path="lib/xalan.jar"/>