You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Arun N <ar...@wipro.com> on 2004/01/15 16:56:42 UTC

WSDL4J NoSuchMethodError com.ibm.wsdl.extensions.PopulatedExtensionRegistry

Hi All,

Although it is a bit offtopic, i thought someone would help or give me a lead for a problem i am facing in WSDL4J

i tried googling and i got many similar questions but let unanswered.

I have a java client accessing the WSDL using WSDL4J.

WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
wsdlReader.setFeature("javax.wsdl.verbose",false);
wsdlReader.setFeature("javax.wsdl.importDocuments",true);
InputSource src = new InputSource(new URL(wsdlURL).openStream());
Definition definition = wsdlReader.readWSDL("URL", src); (am getting an error in this line)

This is working perfectly fine if I run this as a standalone java program or inside tomcat.
But if i put this code in weblogic and try i am getting an error. Can anybody help regarding this.

java.lang.NoSuchMethodError
at com.ibm.wsdl.extensions.PopulatedExtensionRegistry.<init>(Unknown Source)
at com.ibm.wsdl.factory.WSDLFactoryImpl.newPopulatedExtensionRegistry(Unknown Source)
at com.ibm.wsdl.factory.WSDLFactoryImpl.newDefinition(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.miso.markets.ptp.wsclient.WSDLAccessManager.loadWSDL(WSDLAccessManager.java:80)
at com.miso.markets.ptp.wsclient.WSDLAccessManager.init(WSDLAccessManager.java:52)


i downloaded latest xerces and put first in classpath and then overrid the parsers with -Djavax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" -Djavax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"

and after that i tried the next with crimson

-Djavax.xml.parsers.DocumentBuilderFactory="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" -Djavax.xml.parsers.SAXParserFactory="org.apache.crimson.jaxp.SAXParserFactoryImpl"


and both the times.. i check the system properties it is set properly to whatever i set. but doesnot work

<%=System.getProperties().getProperty("javax.xml.parsers.DocumentBuilderFactory")%>
<%=System.getProperties().getProperty("javax.xml.parsers.SAXParserFactory")%>

any lead or help will be greately apperciated.


regards,
Arun

Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.