You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Dan Edwards <da...@contactpt.com> on 2000/08/24 16:22:17 UTC

Problem compiling

After stumbling around yesterday, I've gotten over my immediate hump.

I do still have a question, however.  If I try to build the soap source
tree, I get errors surrounding the XML stuff.  I've removed jaxp from my
system.  I went so far as to remove xerces from my classpath.  When I try a
compile, ANT can't find any XML classes and aborts.  Therefore, I'm sure
only Xerces 1.1.3 is in my classpath.

My problems all surround the XML objects.  The first error shows up in
AttributeHandler.java.  The following code block starts at line 224.

    for (int i = 0; i < size; i++)
    {
      Attr attr = (Attr)attrs.item(i);
      String namespaceURI = attr.getNamespaceURI();
	String localName = attr.getLocalName();
      String value = attr.getValue();

      attrHandler.setAttribute(new QName(namespaceURI, localName), value);
    }

The reference to attr.getNamespaceURI() throws a 'method not found' error.
If I look at the Xerces 1.1.3 documentation, Attr does NOT provide the
getNamespaceURI method.  This method is provided in
org.apache.xerces.dom.AttrNSImpl.  The only Attr found in xerces.jar is
org.w3c.dom.Attr, which does NOT have the getNamespaceURI.

How does this work?

Dan Edwards, President
Contact Point Technologies
(770) 453-9990 x318
http://www.contactpt.com