1 Reply Latest reply on Sep 22, 2005 7:47 PM by thomas.diesler

    JAXP 1.3 in JBoss 4.02 ?

    rmunjuluri

      Hello,

      has anyone tried to use JAXP1.3 with JBoss 4.02?

      I am trying to use JAXP 1.3's XML validation in a simple web app deployed within JBoss 4.02. that read a SOAPEnvelope in the request and validates the body content and sends a response back.

      I have included the JAXP1.3 jars in the WEB-INF/lib directory in the WAR and when I try to send a SOAP request and try extract the SOAP Envelope using

      SOAPMessage soapMessage =
      messageFactory.createMessage(mimeHeaders,sInputStream);


      I get the following stack trace. looks like the XML Utils thats invoked internally by the createMessage() is compatible with JAXP1.2. Is my understanding correct?

      =================
      java.lang.NoSuchMethodError: getSchema
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.(Ljavax.xml.parsers.DocumentBuilderFactory;
      Ljava.util.Hashtable;)V(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder()Ljavax.xml.parsers.Doc
      umentBuilder;(Unknown Source)
      at org.jboss.axis.utils.XMLUtils.newDocument()Lorg.w3c.dom.Document;(XMLUtils.java:252)
      at org.jboss.axis.message.SOAPDocumentImpl.(Lorg.jboss.axis.MessagePart;)V(SOAPDocumentImpl.java:70)
      at org.jboss.axis.MessagePart.(Lorg.jboss.axis.Message;Ljava.lang.Object;Z)V(MessagePart.java:1122)
      at org.jboss.axis.Message.setup(Ljava.lang.Object;ZLjava.lang.String;Ljava.lang.String;Ljavax.xml.soap.MimeHeade
      rs;)V(Message.java:366)
      at org.jboss.axis.Message.(Ljava.lang.Object;ZLjavax.xml.soap.MimeHeaders;)V(Message.java:212)
      at org.jboss.axis.soap.MessageFactoryImpl.createMessage(Ljavax.xml.soap.MimeHeaders;Ljava.io.InputStream;)Ljavax
      .xml.soap.SOAPMessage;(MessageFactoryImpl.java:120)

      thanx
      -ram