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

jnedzel <[email protected]> Thu, 22 Mar 2007 14:29:17 -0400
Newsgroups gmane.comp.apache.webservices.wsif.user
Organization Broad Institute
Message-ID <[email protected]>
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
>