axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa" <dchandrad...@virtusa.com>
Subject RE: Error when running WSDL2Ws
Date Mon, 08 Aug 2005 04:35:40 GMT
Hi,

I tried to reproduce your problem by moving my jars in to C:\Program
Files folder. I just wanted to set the classpath to a folder with a name
which has spaces in between the words.

I ended up with the following error.

Exception in thread "main" java.lang.NoClassDefFoundError:
Files\AxisClasses\axi
s-1_2beta\lib\axis/jar;C:\Program

It seems to me that Windows (I'm using XP Professional 2002) cannot
resolve the classpath when there are spaces in it. 

Just try with a classpath which is no spaces.

(I assume that your wsdl file contails all the required fields to
generate classesd from the tool)

Regards,
Dushshantha

-----Original Message-----
From: Bish, Tim [mailto:Tim.Bish@Sensis.com] 
Sent: Friday, August 05, 2005 5:14 PM
To: 'Apache AXIS C User List'
Subject: RE: Error when running WSDL2Ws

This is my classpath, all the JARs specified are there.

CLASSPATH=.;C:\Program Files\Java\jaf-1.0.2\activation.jar;C:\Program
Files\Axis\lib\axis-ant.jar;C:\Program F
iles\Axis\lib\axis.jar;C:\Program
Files\Axis\lib\commons-discovery-0.2.jar;C:\Program
Files\Axis\lib\commons-l
ogging-1.0.4.jar ;C:\Program Files\Axis\lib\jaxrpc.jar;C:\Program
Files\Axis\lib\saaj.jar;C:\Program Files\Axi
s\lib\wsdl4j-1.5.1.jar;C:\Program Files\Java\javamail-1.3.2\mail.jar;

When I execute the command like so, this is what I get.

C:\Source Archive\AxisCClient>java -classpath
.\wsdl2ws.jar;.;"%CLASSPATH%"
org.apache.axis.wsdl.wsdl2ws.WSDL2
Ws SoapTestServer.wsdl -o./ClientOut -lc++ -sclient
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis.wsdl.symbolTable.BindingEntry.getBindi
ngStyle()Lorg/apache/axis/enum/Style;
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)

------------------------------------
Timothy A. Bish
Tim.Bish@sensis.com 

-----Original Message-----
From: Dushshantha Chandradasa [mailto:dchandradasa@virtusa.com] 
Sent: Thursday, August 04, 2005 11:59 PM
To: Apache AXIS C User List
Subject: RE: Error when running WSDL2Ws

Did you set the classpath properly?? Please check whether you have set
following jars in your classpath??

axis.jar 
wsdl4j.jar 
commons-discovery.jar 
commons-logging.jar 
log4j-1.2.8.jar 
jaxrpc.jar 
saaj.jar 

You should set the classpath in following manner. Note that each of the
files above should be separately included in the classpath.

.;C:\AxisClasses\axis-1_2beta\lib\axis.jar;C:\AxisClasses\axis-1_2beta\l
ib\commons-discovery.jar;C:\AxisClasses\axis-1_2beta\lib\commons-logging
.jar;C:\AxisClasses\axis-1_2beta\lib\jaxrpc.jar;C:\AxisClasses\axis-1_2b
eta\lib\saaj.jar;C:\AxisClasses\axis-1_2beta\lib\wsdl4j.jar;C:\AxisClass
es\axis-1_2beta\lib\xml-apis.jar


Please refer http://ws.apache.org/axis/cpp/arch/WSDL2Ws.html for more
details. 


Thanks,
Dushshantha

-----Original Message-----
From: Bish, Tim [mailto:Tim.Bish@Sensis.com] 
Sent: Thursday, August 04, 2005 7:14 PM
To: 'axis-c-user@ws.apache.org'
Subject: Error when running WSDL2Ws

Upon running the WSDL2Ws tool I get the following error.

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis.wsdl.symbolTable.BindingEntry.getBindi
ngStyle()Lorg/apache/axis/enum/Style;
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown
Source)
        at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)

Current Axis-C version is 1.5 and my Java Version is:

java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

Any clues?

------------------------------------
Timothy A. Bish
Tim.Bish@sensis.com 

Mime
View raw message