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 ch...@comcast.net on 2004/04/07 07:05:54 UTC
Classpath?
Can anyone offer any help on what I'm pretty sure is a CLASSPATH issue? This is a re-post, and I apologize, but I'm pulling my hair out -- I've tried all sorts of classpath combinations and configurations. I thought I had everything set when I got this:
C:\axis-1_1\samples\stock>java -cp %AXISCLASSPATH%
org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
Processing file deploy.wsdd
<Admin>Done processing</Admin>
I thought I was good to go. But then I tried the next step and got this:
C:\axis-1_1\samples\stock>java -cp .;%AXISCLASSPATH%
samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX
Exception in thread "main" java.lang.NoClassDefFoundError:
samples/stock/GetQuote
Again, here are my path settings:
AXIS_HOME: c:\axis-1_1
AXIS_LIB: %AXIS_HOME%\lib
AXISCLASSPATH:
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\mail.jar
CLASSPATH: .;C:\ServletDevel;C:\Program Files\Apache Software
Foundation\Tomcat 5.0\common\lib\servlet-api.jar;C:\Program Files\Apache
Software Foundation\Tomcat 5.0\common\endorsed\xercesImpl.jar;C:\Program
Files\Apache Software Foundation\Tomcat
5.0\common\endorsed\xmlParserAPIs.jar;%AXISCLASSPATH%;C:\axis-1_1\samples
CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5.0
thanks,
-Rob
--
rob@chudzik.com
Re: Classpath?
Posted by John R Meloro <jm...@adelphia.net>.
I'm not sure if this is the problem; however, I thought that if you used the
complete file name for a class then you had to be in the directory "above"?
More specifically, it looks to me like you are attempting to execute the
class "samples.stock.GetQuote" from the "C:\axis-1_1\samples\stock"
directory. I would have thought that you would have to execute that class
from "C:\axis-1_1".
C:\axis-1_1>java -classpath .;%AXISCLASSPATH%
samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uus
er1 -wpass1 XXX
Hope this helps...
----- Original Message -----
From: <ch...@comcast.net>
To: <ax...@ws.apache.org>
Sent: Wednesday, April 07, 2004 1:05 AM
Subject: Classpath?
> Can anyone offer any help on what I'm pretty sure is a CLASSPATH issue?
This is a re-post, and I apologize, but I'm pulling my hair out -- I've
tried all sorts of classpath combinations and configurations. I thought I
had everything set when I got this:
>
> C:\axis-1_1\samples\stock>java -cp %AXISCLASSPATH%
> org.apache.axis.client.AdminClient
> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
> Processing file deploy.wsdd
> <Admin>Done processing</Admin>
>
> I thought I was good to go. But then I tried the next step and got this:
>
> C:\axis-1_1\samples\stock>java -cp .;%AXISCLASSPATH%
> samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet
> -uuser1 -wpass1 XXX
> Exception in thread "main" java.lang.NoClassDefFoundError:
> samples/stock/GetQuote
>
> Again, here are my path settings:
>
> AXIS_HOME: c:\axis-1_1
>
> AXIS_LIB: %AXIS_HOME%\lib
>
> AXISCLASSPATH:
>
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logg
ing.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar
;%AXIS_LIB%\mail.jar
>
> CLASSPATH: .;C:\ServletDevel;C:\Program Files\Apache Software
> Foundation\Tomcat 5.0\common\lib\servlet-api.jar;C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\common\endorsed\xercesImpl.jar;C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\common\endorsed\xmlParserAPIs.jar;%AXISCLASSPATH%;C:\axis-1_1\samples
>
> CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5.0
>
> thanks,
>
> -Rob
>
> --
> rob@chudzik.com