By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

Problem setting classpath in apache axis

P: 1
hi..

I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
with the help of 'apache.axis.install.pdf' and also tested the examples
under 'samples\userguide' directoy provided with 'AXIS'.

Later ,I wanted to run a 'build.xml' file created of my own to run the
'example3' project under a diffrent directory and configured the 'build.xml'
accordingly. I succeded but after then .. I could not run any of the examples.

When i tried to run any 'CLIENT' file from command prompt ....

" h:\axis\samples\stock > java -cp %AXISCLASSPATH%
org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

"

It works. but if i run..

h:\axis\samples\stock > java org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


it shows me

''Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/client/AdminClient ''

This is same for all the examples.
I can't anticipate .. what the problem may be. For ur convenience .. i here
provide all the classpaths...


JAVA_HOME = H:\Java\j2sdk1.5.0
AXIS_HOME =H:\tomcat\webapps\axis
AXIS_LIB = %AXIS_HOME%\web-inf\lib


AXISCLASSPATH = %AXIS_LIB%\axis.jar;
%AXIS_LIB%\axis-ant.jar;
% AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\xmlsec.jar;
%AXIS_LIB%\activation.jar;
%AXIS_LIB%\mailapi_1_3_1.jar;
H:\tomcat\common\lib\servlet.jar;
%AXIS_LIB%\wsdl4j-1.5.1.jar;
%AXIS_LIB%\xmlParserAPIs.jar

CLASSPATH = .;%AXISCLASSPATH%;h:\Java\classes





It's really urgent for me... i'll be grateful to u if u pls can give any solution .
Aug 9 '06 #1
Share this Question
Share on Google+
4 Replies


P: 1
Hi,
Have u got any solution for this issue? me too getting same problem, plz help me in this....

Thank you...

hi..

I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
with the help of 'apache.axis.install.pdf' and also tested the examples
under 'samples\userguide' directoy provided with 'AXIS'.

Later ,I wanted to run a 'build.xml' file created of my own to run the
'example3' project under a diffrent directory and configured the 'build.xml'
accordingly. I succeded but after then .. I could not run any of the examples.

When i tried to run any 'CLIENT' file from command prompt ....

" h:\axis\samples\stock > java -cp %AXISCLASSPATH%
org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

"

It works. but if i run..

h:\axis\samples\stock > java org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


it shows me

''Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/client/AdminClient ''

This is same for all the examples.
I can't anticipate .. what the problem may be. For ur convenience .. i here
provide all the classpaths...


JAVA_HOME = H:\Java\j2sdk1.5.0
AXIS_HOME =H:\tomcat\webapps\axis
AXIS_LIB = %AXIS_HOME%\web-inf\lib


AXISCLASSPATH = %AXIS_LIB%\axis.jar;
%AXIS_LIB%\axis-ant.jar;
% AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\xmlsec.jar;
%AXIS_LIB%\activation.jar;
%AXIS_LIB%\mailapi_1_3_1.jar;
H:\tomcat\common\lib\servlet.jar;
%AXIS_LIB%\wsdl4j-1.5.1.jar;
%AXIS_LIB%\xmlParserAPIs.jar

CLASSPATH = .;%AXISCLASSPATH%;h:\Java\classes





It's really urgent for me... i'll be grateful to u if u pls can give any solution .
Jan 6 '07 #2

P: 1
hey guys..
please help me out.
i'm stuck up with the same problem

thanks in advance...
Apr 18 '07 #3

Motoma
Expert 2.5K+
P: 3,235
You are putting .jar files in your classpath. What you really need to do is put a path in there.
Apr 23 '07 #4

P: 1
You are putting .jar files in your classpath. What you really need to do is put a path in there.
HI
I could not understand you.What do u mean by saying put a path there.
Sep 3 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.