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

jnedzel <[email protected]> Thu, 22 Mar 2007 13:56:18 -0400
Newsgroups gmane.comp.apache.webservices.wsif.user
Organization Broad Institute
Message-ID <[email protected]>
Alek:

I'm running from a command-line, not from inside an appserver.

I'm setting my classpath explicitly in a small script:

export 
ANT_LIBS=lib/ant-1.6.5/ant-launcher.jar:lib/ant-1.6.5/ant-nodeps.jar:lib/ant-1.6.5/ant.jar
export JDOM_LIBS=lib/jdom-1.0/jdom-1.0.jar
export 
JIDE_LIBS=lib/jide-1.9.1.03/jide-common.jar:lib/jide-1.9.1.03/jide-dialogs.jar
export WSIF_LIBS=lib/wsif-2.0/wsif.jar
export JUNIT_LIBS=lib/junit-3.8.1/junit.jar
export 
CAGRID_LIBS=lib/caGrid-1.0/addressing-1.0.jar:lib/caGrid-1.0/axis-url.jar:lib/caGrid-1.0/log4j-1.2.8.jar:lib/caGrid-1.0/axis.jar:lib/caGrid-1.0/naming-common.jar:lib/caGrid-1.0/bootstrap.jar:lib/caGrid-1.0/naming-factory.jar:lib/caGrid-1.0/caGrid-1.0-discovery.jar:lib/caGrid-1.0/naming-java.jar:lib/caGrid-1.0/caGrid-1.0-metadata-common.jar:lib/caGrid-1.0/naming-resources.jar:lib/caGrid-1.0/caGrid-1.0-metadata-data.jar:lib/caGrid-1.0/opensaml.jar:lib/caGrid-1.0/caGrid-1.0-metadataUtils.jar:lib/caGrid-1.0/puretls.jar:lib/caGrid-1.0/cog-axis.jar:lib/caGrid-1.0/resolver.jar:lib/caGrid-1.0/cog-jglobus.jar:lib/caGrid-1.0/saaj.jar:lib/caGrid-1.0/cog-tomcat.jar:lib/caGrid-1.0/servlet.jar:lib/caGrid-1.0/cog-url.jar:lib/caGrid-1.0/wsdl4j.jar:lib/caGrid-1.0/commonj.jar:lib/caGrid-1.0/wsrf_common.jar:lib/caGrid-1.0/commons-beanutils.jar:lib/caGrid-1.0/wsrf_core.jar:lib/caGrid-1.0/commons-cli-2.0.jar
 :lib/caGrid-1.0/wsrf_core_registry.jar:lib/caGrid-1.0/commons-collections-3.0.jar:lib/caG
rid-1.0/wsrf_core_registry_stubs.jar:lib/caGrid-1.0/commons-digester.jar:lib/caGrid-1.0/wsrf_core_samples_authzService.jar:lib/caGrid-1.0/commons-discovery.jar:lib/caGrid-1.0/wsrf_core_samples_authzService_stubs.jar:lib/caGrid-1.0/commons-logging.jar:lib/caGrid-1.0/wsrf_core_samples_counter.jar:lib/caGrid-1.0/concurrent.jar:lib/caGrid-1.0/wsrf_core_samples_counter_stubs.jar:lib/caGrid-1.0/cryptix-asn1.jar:lib/caGrid-1.0/wsrf_core_samples_mgmt.jar:lib/caGrid-1.0/cryptix.jar:lib/caGrid-1.0/wsrf_core_samples_mgmt_stubs.jar:lib/caGrid-1.0/cryptix32.jar:lib/caGrid-1.0/wsrf_core_stubs.jar:lib/caGrid-1.0/globus_resolution_service.jar:lib/caGrid-1.0/wsrf_provider_jce.jar:lib/caGrid-1.0/globus_resolution_stubs_java.jar:lib/caGrid-1.0/wsrf_test.jar:lib/caGrid-1.0/globus_resolution_test.jar:lib/caGrid-1.0/wsrf_test_interop.jar:lib/caGrid-1.0/globus_transfer_service.jar:lib/caGrid-1.0/wsrf_test_inte
 rop_stubs.jar:lib/caGrid-1.0/globus_transfer_stubs_java.jar:lib/caGrid-1.0/wsrf_test_unit.
jar:lib/caGrid-1.0/globus_transfer_test.jar:lib/caGrid-1.0/wsrf_test_unit_stubs.jar:lib/caGrid-1.0/globus_usage_core.jar:lib/caGrid-1.0/wsrf_tools.jar:lib/caGrid-1.0/globus_usage_packets_common.jar:lib/caGrid-1.0/wss4j.jar:lib/caGrid-1.0/globus_wsrf_tools_test.jar:lib/caGrid-1.0/xalan.jar:lib/caGrid-1.0/jaxrpc.jar:lib/caGrid-1.0/xercesImpl.jar:lib/caGrid-1.0/jce-jdk13-125.jar:lib/caGrid-1.0/xml-apis.jar:lib/caGrid-1.0/jgss.jar:lib/caGrid-1.0/xmlsec.jar

export 
CLASSPATH=build:${ANT_LIBS}:${JDOM_LIBS}:${JIDE_LIBS}:${WSIF_LIBS}:${JUNIT_LIBS}:${CAGRID_LIBS}:build/lib/CGInt.jar
echo "classpath is: "
echo $CLASSPATH

java -classpath `cygpath -wp $CLASSPATH` 
-Djava.endorsed.dirs=lib/endorsed_libs -verbose 
edu.mit.broad.genepattern.cagrid.modulegenerator.ui.GPModuleGenerator

Output from the script is in the attached console.txt file.

I've only got one version of wsdl4j on the classpath, but I'm still 
getting the error.

Any other suggestions?

Thanks,

Jared

Aleksander Slominski wrote:
> 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,
>>
> 
> 


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

617-324-4825
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
console.txt (text/plain, 253.4 KB) - not displayed