3 Replies Latest reply on Jul 29, 2002 4:10 AM by Joel Vogt

    XML MESSAGE

    Silas Mhalngu Newbie

      Hello

      I'm trying to send an xml message. I have a Publisher class that does the publishing, and a class that does the XML Parsing I also use SAX as my Parser. I return the xml document as String. The xerces.jar is being configured in the classpath.

      Procedure

      Within the Publisher class I instantiate the parser clas that returnd an XML document as String. I pass the Xml string on the onMessage Method. I get this error when I use Ant to compile
      [javac] Compiling 3 source files to C:\examples\build-examples\jms\classes
      [javac] C:\examples\org\jboss\docs\jms\client\JbossXml.java:3: package org.a
      ache.xerces.parsers does not exist
      [javac] import org.apache.xerces.parsers.DOMParser;
      [javac] ^
      [javac] C:\examples\org\jboss\docs\jms\client\JbossXml.java:19: cannot resol
      e symbol
      [javac] symbol : class DOMParser
      [javac] location: class org.jboss.docs.jms.client.JbossXml
      [javac] DOMParser parser = new DOMParser();
      [javac] ^
      [javac] C:\examples\org\jboss\docs\jms\client\JbossXml.java:19: cannot resol
      e symbol
      [javac] symbol : class DOMParser
      [javac] location: class org.jboss.docs.jms.client.JbossXml
      [javac] DOMParser parser = new DOMParser();
      [javac] ^
      [javac] 3 errors

      So how do I configure xerxes.jar in Jboss 2.4.5