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

jnedzel <[email protected]> Thu, 22 Mar 2007 14:35:37 -0400
Newsgroups gmane.comp.apache.webservices.wsif.user
Organization Broad Institute
Message-ID <[email protected]>
One further note, using the version of wsdl4j.jar that came with the 
stack that I'm using (caBig, which is based on Globus 4.0.3), I get the 
following walkback:

Exception in thread "Thread-4" java.lang.NoSuchMethodError: 
javax.wsdl.xml.WSDLLocator.getImportReader(Ljava/lang/String;Ljava/lang/String;)Ljava/io/Reader;
	at org.apache.wsif.schema.Parser.getImportedSchemas(Unknown Source)
	at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown Source)
	at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown Source)
	at org.apache.wsif.schema.Parser.getTypesSchemas(Unknown Source)
	at org.apache.wsif.schema.Parser.getAllSchemaTypes(Unknown Source)
	at 
edu.mit.broad.genepattern.cagrid.modulegenerator.WebServiceInterface.parseSchema(WebServiceInterface.java:584)
	at 
edu.mit.broad.genepattern.cagrid.modulegenerator.ui.ParameterTableModel$1.run(ParameterTableModel.java:82)

It isn't clear to me which version of wsdl4j is in caBig 1.0.  The 
contents of the Manifest.MF file in this wsdl4j.jar is as follows:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.3.1_11-b02 (Sun Microsystems Inc.)
Specification-Title: JWSDL
Specification-Version: 1.1
Specification-Vendor: IBM (Java Community Process)
Implementation-Title: WSDL4J
Implementation-Version: 1.5
Implementation-Vendor: IBM


jnedzel wrote:
> Alek:
> 
> With wsdl4j-20021124.jar (which comes with wsif-2.0), I get a 
> NoClassDefFoundError for javax.wsdl.extensions.AttributeExtensive. 
> here's the walkback:
> 
> Exception in thread "Thread-2" java.lang.NoClassDefFoundError: 
> javax/wsdl/extensions/AttributeExtensible
>         at 
> org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(Address 
> 
> ingHandler.java:219)
>         at 
> org.globus.wsrf.handlers.AddressingHandler.processClientRequest(AddressingHandler.java:69 
> 
> )
>         at 
> org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.jav 
> 
> a:108)
>         at 
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) 
> 
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2727)
>         at org.apache.axis.client.Call.invoke(Call.java:2710)
>         at org.apache.axis.client.Call.invoke(Call.java:2386)
>         at org.apache.axis.client.Call.invoke(Call.java:2309)
>         at org.apache.axis.client.Call.invoke(Call.java:1766)
>         at 
> org.oasis.wsrf.properties.QueryResourcePropertiesSOAPBindingStub.queryResourceProperties( 
> 
> QueryResourcePropertiesSOAPBindingStub.java:415)
>         at 
> gov.nih.nci.cagrid.metadata.ResourcePropertyHelper.issueRPQuery(ResourcePropertyHelper.ja 
> 
> va:238)
>         at 
> gov.nih.nci.cagrid.metadata.ResourcePropertyHelper.queryResourceProperties(ResourceProper 
> 
> tyHelper.java:87)
>         at 
> gov.nih.nci.cagrid.discovery.client.DiscoveryClient.discoverByFilter(DiscoveryClient.java 
> 
> :650)
>         at 
> gov.nih.nci.cagrid.discovery.client.DiscoveryClient.getAllServices(DiscoveryClient.java:1 
> 
> 28)
>         at 
> edu.mit.broad.genepattern.cagrid.modulegenerator.CaGridUtils.getServices(CaGridUtils.java 
> 
> :24)
>         at 
> edu.mit.broad.genepattern.cagrid.modulegenerator.ui.ServiceJList.getCaGridServices(Servic 
> 
> eJList.java:11)
>         at 
> edu.mit.broad.genepattern.cagrid.modulegenerator.ui.ServiceJList.access$000(ServiceJList. 
> 
> java:6)
>         at 
> edu.mit.broad.genepattern.cagrid.modulegenerator.ui.ServiceJList$1.run(ServiceJList.java: 
> 
> 44)
> 
> Using wsdl4. 1.6.1, I get farther in the code, with 
> Parser.getAllSchemaTypes now throwing a ClassCastException:
> 
> Exception returned for service java.lang.ClassCastException: 
> com.ibm.wsdl.extensions.schema.SchemaImpl cannot be cast to 
> javax.wsdl.extensions.UnknownExtensibility
> 
> 
> 
> 
> 
> Aleksander Slominski wrote:
>> could you check what is the version of
>>
>> lib/caGrid-1.0/wsdl4j.jar
>>
>> could you try to replace it with wsdl4j that comes with wsif and see 
>> what happens?
>>
>> best,
>>
>> alek
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


-- 
Jared Nedzel
Cancer Genomics Informatics
Broad Institute
7 Cambridge Center
Cambridge, MA 02142

617-324-4825
[email protected]