473,232 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,232 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 13941
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

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

Similar topics

1
by: JD | last post by:
Hello everybody, web services are still new for me ; I've just created a basic one with Apache soap which only receive and send a string. But now, I'd like to create one which will be able to...
0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
3
by: Jacky Zhu | last post by:
Hi all, I am having a problem trying to consume a webservice that is developed on ..Net. I can access it without any problem using a .net client, but when I use a java client (based on Axis...
7
by: milkyway | last post by:
Hello all, I am new to the Axis world. I was just trying to understand something. Basically, Apache Axis will allow one to put web services on the Apache server? I am running apache2. Is there a...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
1
by: sylsau | last post by:
Hello, I wrote a JAVA program which uses the JAVA API JDOM 1.0 (of this site www.jdom.org) I put the archive jdom.jar in the directory /usr/share/java/jdom.jar and I added this path in the...
0
by: newdbprgmer | last post by:
I am using a business objects API that is a web service and has axis as dependency. it works fine with 1.1 version, but with 1.3 gives an error. The code is as follows: public void...
2
raveendrabikkina
by: raveendrabikkina | last post by:
03/17 15:45:40 error Error creating form bean of class epost.form.BpUploadForm java.lang.InstantiationException: epost.form.BpUploadForm at java.lang.Class.newInstance0(Class.java:291) ...
1
by: karthikpallavi | last post by:
Hi Everyone, I am battling an issue and I figured one of you guys on this forum may be able to help. I have a developed an application in java to access Microsoft Dynamics 10.0 through Web...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.