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 = "" 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
|