472,094 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,094 software developers and data experts.

Problem setting classpath in apache axis

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
4 13787
Vishwa
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
radhu
1
hey guys..
please help me out.
i'm stuck up with the same problem

thanks in advance...
Apr 18 '07 #3
Motoma
3,237 Expert 2GB
You are putting .jar files in your classpath. What you really need to do is put a path in there.
Apr 23 '07 #4
Hiamit
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.

Similar topics

1 post views Thread by JD | last post: by
3 posts views Thread by Jacky Zhu | last post: by
7 posts views Thread by milkyway | last post: by
1 post views Thread by leslie_tighe | last post: by
1 post views Thread by sylsau | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.