[ http://issues.apache.org/jira/browse/AXIS2-1074?page=comments#action_12430373 ] Derek Foster commented on AXIS2-1074: -------------------------------------
Mea Culpa. It looks like the old JARS were the cause of this problem. Please close this bug as "Not a bug". Thanks. > WSDL2Java referring to nonexistent method OMNamespace.getNamespaceURI > --------------------------------------------------------------------- > > Key: AXIS2-1074 > URL: http://issues.apache.org/jira/browse/AXIS2-1074 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: core, om, databinding > Reporter: Derek Foster > Priority: Critical > > I just downloaded the latest nightly build and rebuilt my project. I got > compile errors when trying to compile the WSDL2Java-generated files. The > errors are complaining about calls to a nonexistent method, > OMNamespace.getNamespaceURI(), in the generated code. > One such call is like this, from a generated ...Stub class: > /** > * A utility method that copies the namepaces from the SOAPEnvelope > */ > private java.util.Map > getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){ > java.util.Map returnMap = new java.util.HashMap(); > java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces(); > while (namespaceIterator.hasNext()) { > org.apache.axiom.om.OMNamespace ns = > (org.apache.axiom.om.OMNamespace) namespaceIterator.next(); > returnMap.put(ns.getPrefix(),ns.getNamespaceURI()); > } > return returnMap; > } > Another , from a generated ...MessageReceiverInOut class: > /** > * A utility method that copies the namepaces from the SOAPEnvelope > */ > private java.util.Map > getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){ > java.util.Map returnMap = new java.util.HashMap(); > java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces(); > while (namespaceIterator.hasNext()) { > org.apache.axiom.om.OMNamespace ns = > (org.apache.axiom.om.OMNamespace) namespaceIterator.next(); > returnMap.put(ns.getPrefix(),ns.getNamespaceURI()); > } > return returnMap; > } > This bug makes WSDL2Java all but unusable for me (I have to go in and > manually patch up the results to get it to run, which breaks my ANT build > script). Please fix ASAP. I would like this bug to be considered a blocker > for the release of Axis2 1.1. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
