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

    XML MESSAGE

    jigga

      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

        • 1. Re: XML MESSAGE
          joelvogt

          mok, how is xerces.jar being configured in the classpath?

          • 2. Re: XML MESSAGE
            jigga

            The configuration of xerces.jar points to the folder where it is.

            EG. CLASSPATH = c:\Parsers\xerces.jar

            • 3. Re: XML MESSAGE
              joelvogt

              yeah okay, best not to do this. If you are using a war file, then in WEB-INF/lib is the place for your jar files.
              Putting stuff on the classpath will generally cause you hassles