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 08:41:26 GMT
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/axis/:
>                         $JAVA_HOME/lib:$AXIS_JARS:"
> 
> Thanks in advanse!
> 


Mime
View raw message