Re: NoSuchMethodError: javax.wsdl.xml.WSDLLocator.getImportReader

Aleksander Slominski <[email protected]> Tue, 20 Mar 2007 15:07:10 -0400
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
jnedzel wrote:
> I'm having a problem with Parser.getAllSchemaTypes().  I'm getting the
> following walkback:
>
> [java] Exception in thread "Thread-4" java.lang.NoSuchMethodError:
> javax.wsdl.xml.WSDLLocator.getImportReader(Ljava/lang/String;Ljava/lang/String;)Ljava/io/Reader;
>
> [java]     at org.apache.wsif.schema.Parser.getImportedSchemas(Unknown
> Source)
> [java]     at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown
> Source)
> [java]     at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown
> Source)
> [java]     at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown
> Source)
> [java]     at org.apache.wsif.schema.Parser.getAllSchemaTypes(Unknown
> Source)
> [java]     at
> edu.mit.broad.genepattern.cagrid.modulegenerator.WebServiceInterface.parseSchema(WebServiceInterface.java:584)
>
>
> My configuration is:
>
> jdk 1.5
> axis 1.2 RC2
> wsif 2.0
> wsdl4j 1.6.2
i would make sure you do not have more than one version of WSDL4J on
your CLASSPATH (especially if it is inside app server and there are many
class loaders and places for libs)

HTH,

alek
>
> The appropriate source code fragment is:
>
> ----------------------------
>
> WSIFWSDLLocatorImpl wsdlLocator = new WSIFWSDLLocatorImpl(null,
>   this.selectedServiceWSDL, ClassLoader.getSystemClassLoader());
>
> Parser.getAllSchemaTypes(this.definition, this.schemaTypes,
>                     wsdlLocator);
>
> ----------------------------
>
> Any idea what might be causing this and/or a work-around?
>
> Thanks,
>


-- 
The best way to predict the future is to invent it - Alan Kay