axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Ledru <cyril.le...@smartjog.com>
Subject Re: NoClassDefFoundError
Date Fri, 16 Jul 2004 09:35:10 GMT
Ok this is what i do. I don't know if it'll work for you.

I don't put wsdl2ws.jar in the classpath directly.
I copy it into my work directory, i put all the other jars in my 
classpath and then i launch :

$java -cp ./wsdl2ws.jar:$CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws 
Calculator.wsdl -lc++ -sserver


Anton wrote:

> Ok, all changed, as You see,
> 
> $echo $CLASSPATH
> 
>>/usr/local/axiscpp/lib/axisjava/wsdl2ws.jar::./:/usr/local/axiscpp/lib/axis/:
> 
> /usr/java/lib:/usr/local/axiscpp/lib/axisjava/wsdl2ws.jar:
> /usr/local/axiscpp/lib/axisjava/axisant.jar:/usr/local/axiscpp/lib/axisjava/axis.jar:
> /usr/local/axiscpp/lib/axisjava/commons-discovery.jar:
> /usr/local/axiscpp/lib/axisjava/commons-logging.jar:
> /usr/local/axiscpp/lib/axisjava/log4j-1.2.3.jar:/usr/local/axiscpp/lib/axisjava/jaxrpc.jar:
> /usr/local/axiscpp/lib/axisjava/saaj.jar:
> /usr/local/axiscpp/lib/axisjava/wsdl4j.jar:
> 
> $cd $AXISCPP_HOME/samples/server/simple
> $java -cp $CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl 
> -lc++ -sserver
> 
>>Exception in thread "main" java.lang.NoClassDefFoundError: 
> 
> org/apache/axis/wsdl/wsdl2ws/WSDL2Ws
> 
> Have You some idea? :(
> Thanks.
> 
> On Friday 16 July 2004 11:09, Marcus Tillmanns wrote:
> 
>>You have to add the WSDL2WS.jar as First into the classpath
>>
>>----- Original Message -----
>>From: "Anton" <anton.gusev@ihep.ru>
>>To: "Apache AXIS C User List" <axis-c-user@ws.apache.org>
>>Sent: Friday, July 16, 2004 10:56 AM
>>Subject: Re: NoClassDefFoundError
>>
>>
>>>Thanks, unfortunately result is same one:
>>>
>>>$java -cp $CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl
>>>-lc++ -sserver
>>>
>>>
>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>
>>>org/apache/axis/wsdl/wsdl2ws/WSDL2Ws
>>>
>>>Accordingly documentation, I must located in
>>>"$AXISCPP_HOME/samples/server/simple", it seems like java want
>>>"org/apache/axis/wsdl/wsdl2ws/WSDL2Ws". This path located in another
>>
>>place:
>>
>>>"$AXISCPP_HOME/src/wsdl/", ok I try:
>>>
>>>$cd $AXISCPP_HOME/src/wsdl/
>>>$java -cp $CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl
>>>-lc++ -sserver
>>>
>>>result is same one again:
>>>
>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>
>>>org/apache/axis/wsdl/wsdl2ws/WSDL2Ws
>>>
>>>May be it's necessery to recompile WSDL2Ws.java?
>>>
>>>Thanks.
>>>
>>>On Friday 16 July 2004 10:41, Cyril Ledru wrote:
>>>
>>>>I think you have to tell java the classpath you want to use :
>>>>
>>>>$java -classpath $CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
>>>>Calculator.wsdl -lc++ -sserver
>>>>
>>>>or
>>>>$java -cp $CLASSPATH org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
>>>>Calculator.wsdl -lc++ -sserver
>>>>
>>>>I never understood the difference between the two options...
>>>>
>>>>Anton wrote:
>>>>
>>>>>Hello, Friends!
>>>>>  Can You help me with one problem? I can't geneate server-side
>>>>>skeleton and wrapers, using wsdl2ws:
>>>>>
>>>>>$java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
>>
>>Calculator.wsdl -lc++ -sserver
>>
>>
>>>>>issue:
>>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>>org/apache/axis/wsdl/wsdl2ws/WSDL2Ws
>>>>>
>>>>>My environment vars:
>>>>>AXIS_JARS_HOME="$AXISCPP_HOME/lib/axisjava"
>>>>>
>>>>>AXIS_JARS="$AXIS_JARS_HOME/wsdl2ws.jar:$AXIS_JARS_HOME/axisant.jar:
>>
>>$AXIS_JARS_HOME/axis.jar:$AXIS_JARS_HOME/commons-discovery.jar:
>>
>>>>>$AXIS_JARS_HOME/commons-logging.jar:$AXIS_JARS_HOME/log4j-1.2.3.jar:
>>>>>$AXIS_JARS_HOME/jaxrpc.jar:$AXIS_JARS_HOME/saaj.jar:
>>>>>        $AXIS_JARS_HOME/wsdl4j.jar"
>>>>>
>>>>>JAVA_INSTALL="/usr/local/SUNWappserver"
>>>>>
>>>>>JAVA_HOME="/usr/java"
>>>>>
>>>>>PATH="$PATH:$JAVA_HOME/bin:$JAVA_INSTALL:$JAVA_INSTALL/jdk/bin:."
>>
>>CLASSPATH="$CLASSPATH:./:$AXIS_JARS_HOME/wsdl2ws.jar:$AXISCPP_HOME/lib/ax
>>
>>
>>>>>is/: $JAVA_HOME/lib:$AXIS_JARS:"
>>>>>
>>>>>Thanks in advanse!
> 
> 


Mime
View raw message