Re: Error when reading WSDL
Aleksander Slominski <[email protected]> Wed, 11 Jan 2006 19:30:56 -0500
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
FabrÃcio wrote:
> Hello all,
>
> I have to read a WSDL from a servlet. I’m doing this using the commands:
>
> WSDLFactory factory = new WSIFWSDLFactoryImpl();
>
> WSDLReader wsdlReader = factory.newWSDLReader();
>
> wsdlReader.setFeature("javax.wsdl.verbose", true);
>
> wsdlReader.setFeature("javax.wsdl.importDocuments", true);
>
> Definition WsdlDefinition = wsdlReader.readWSDL(urlWsdl);
>
> But when the line “Definition WsdlDefinition =
> wsdlReader.readWSDL(urlWsdl);†arrives, the following error occurs:
>
> WSDLException: faultCode=CONFIGURATION_ERROR: Problem instantiating
> factory implementation.: org.apache.wsif.wsdl.WSIFWSDLFactoryImpl
>
no other errors? stack traces? what servlet container? did you try
different setups?
> Do you have any idea why this is happening?
>
hard to say - i would suspect CLASSPATH/loaer problems (servlet!) - make
sure that all WSIF related classes are in the same class loader (at
minimum make sure that wsif and wsdl4j jars are)
HTH.
alek
--
The best way to predict the future is to invent it - Alan Kay