You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Developer Developer <de...@gmail.com> on 2005/10/06 00:05:40 UTC

Having trouble with invoking AXIS Admin client

Has anybody seen this error before, if so what is the fix.
 I am running Win XP.
 Here is my output of AXISCLASSPATH- .
C:\Tomcat 5.5\webapps\axis>echo %AXISCLASSPATH%
"C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\axis.jar;"C:\Tomcat
5.5\webapps\axis\WE
B-INF\lib"\commons-discovery.jar; "C:\Tomcat 5.5\webapps\axis\WEB-INF\lib
"\comm
ons-logging.jar;"C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\jaxrpc.jar;"C:\Tomcat
5
.5\webapps\axis\WEB-INF\lib"\saaj.jar; "C:\Tomcat
5.5\webapps\axis\WEB-INF\lib"
\log4j-1.2.8.jar;"C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\xml-apis.jar
;"C:\Tomca
t 5.5\webapps\axis\WEB-INF\lib"\xercesImpl.jar
  Here is the output of running the Admin client- not sure why it is not
working.
  C:\Tomcat 5.5\webapps\axis>java -cp %AXISCLASSPATH%
org.apache.axis.client.Admin
Client -l ttp://localhost:8080/axis/Simple Simple.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Tomcat
5/5\webapps
\axis\WEB-INF\lib\commons-logging/jar;C:\Tomcat
5/5\webapps\axis\WEB-INF\lib\jax
rpc/jar;C:\Tomcat 5/5\webapps\axis\WEB-INF\lib\saaj/jar;

Re: Having trouble with invoking AXIS Admin client

Posted by Ron Reynolds <Ro...@RonReynolds.com>.
there's a whitespace (space, CR, tab) in your classpath that's being interpretted by the java exe as a delimiter
between CP and the main class name.  you might try quoting the whole CP
( java -classpath "%AXISCLASSPATH%" ...) tho all those extra quotes might throw it off,
or use the "DOSified" version of your directory name ("TOMCAT~1.5") instead to avoid spaces.
or move your jars into a simple \dev\lib directory and use a classpath like this:

set AXIS_CP=.
set AXIS_CP=%AXIS_CP%;/dev/lib/axis-1.2.1.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/jaxrpc-1.1.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/commons-logging-1.0.4.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/commons-discovery-0.2.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/wsdl4j-1.5.1.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/saaj-1.2.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/xmlsec-1.2.1.jar
set AXIS_CP=%AXIS_CP%;/dev/lib/junit-3.8.1.jar

(jar names may vary - i add version numbers to all jars if they're missing)

hth.
.................ron.

> Has anybody seen this error before, if so what is the fix.
>  I am running Win XP.
>  Here is my output of AXISCLASSPATH- .
> C:\Tomcat 5.5\webapps\axis>echo %AXISCLASSPATH%
> "C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\axis.jar;"C:\Tomcat
> 5.5\webapps\axis\WE
> B-INF\lib"\commons-discovery.jar; "C:\Tomcat 5.5\webapps\axis\WEB-INF\lib
> "\comm
> ons-logging.jar;"C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\jaxrpc.jar;"C:\Tomcat
> 5
> .5\webapps\axis\WEB-INF\lib"\saaj.jar; "C:\Tomcat
> 5.5\webapps\axis\WEB-INF\lib"
> \log4j-1.2.8.jar;"C:\Tomcat 5.5\webapps\axis\WEB-INF\lib"\xml-apis.jar
> ;"C:\Tomca
> t 5.5\webapps\axis\WEB-INF\lib"\xercesImpl.jar

>   Here is the output of running the Admin client- not sure why it is not
> working.
>   C:\Tomcat 5.5\webapps\axis>java -cp %AXISCLASSPATH%
> org.apache.axis.client.Admin
> Client -l ttp://localhost:8080/axis/Simple Simple.wsdd
> Exception in thread "main" java.lang.NoClassDefFoundError: C:\Tomcat
> 5/5\webapps
> \axis\WEB-INF\lib\commons-logging/jar;C:\Tomcat
> 5/5\webapps\axis\WEB-INF\lib\jax
> rpc/jar;C:\Tomcat 5/5\webapps\axis\WEB-INF\lib\saaj/jar;
>