473,795 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem setting classpath in apache axis

1 New Member
hi..

I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
with the help of 'apache.axis.in stall.pdf' and also tested the examples
under 'samples\usergu ide' 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.AdminCl ient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

"

It works. but if i run..

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


it shows me

''Exception in thread "main" java.lang.NoCla ssDefFoundError :
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\weba pps\axis
AXIS_LIB = %AXIS_HOME%\web-inf\lib


AXISCLASSPATH = %AXIS_LIB%\axis .jar;
%AXIS_LIB%\axis-ant.jar;
% AXIS_LIB%\commo ns-discovery-0.2.jar;
%AXIS_LIB%\comm ons-logging-1.0.4.jar;
%AXIS_LIB%\jaxr pc.jar;%AXIS_LI B%\saaj.jar;
%AXIS_LIB%\log4 j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xerc esImpl.jar;
%AXIS_LIB%\xmls ec.jar;
%AXIS_LIB%\acti vation.jar;
%AXIS_LIB%\mail api_1_3_1.jar;
H:\tomcat\commo n\lib\servlet.j ar;
%AXIS_LIB%\wsdl 4j-1.5.1.jar;
%AXIS_LIB%\xmlP arserAPIs.jar

CLASSPATH = .;%AXISCLASSPAT H%;h:\Java\clas ses





It's really urgent for me... i'll be grateful to u if u pls can give any solution .
Aug 9 '06 #1
4 13993
Vishwa
1 New Member
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.in stall.pdf' and also tested the examples
under 'samples\usergu ide' 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.AdminCl ient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

"

It works. but if i run..

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


it shows me

''Exception in thread "main" java.lang.NoCla ssDefFoundError :
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\weba pps\axis
AXIS_LIB = %AXIS_HOME%\web-inf\lib


AXISCLASSPATH = %AXIS_LIB%\axis .jar;
%AXIS_LIB%\axis-ant.jar;
% AXIS_LIB%\commo ns-discovery-0.2.jar;
%AXIS_LIB%\comm ons-logging-1.0.4.jar;
%AXIS_LIB%\jaxr pc.jar;%AXIS_LI B%\saaj.jar;
%AXIS_LIB%\log4 j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xerc esImpl.jar;
%AXIS_LIB%\xmls ec.jar;
%AXIS_LIB%\acti vation.jar;
%AXIS_LIB%\mail api_1_3_1.jar;
H:\tomcat\commo n\lib\servlet.j ar;
%AXIS_LIB%\wsdl 4j-1.5.1.jar;
%AXIS_LIB%\xmlP arserAPIs.jar

CLASSPATH = .;%AXISCLASSPAT H%;h:\Java\clas ses





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 New Member
hey guys..
please help me out.
i'm stuck up with the same problem

thanks in advance...
Apr 18 '07 #3
Motoma
3,237 Recognized Expert Specialist
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 New Member
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
2470
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 receive and send some objects of mine (which are not javabeans). Do I need to create a serializer and a unserializer and a xsd file for each object I want to transfer? I work with Apache soap but is it better to work with axis or WSDP?
0
7113
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 "Russian doll" style of schema design, where the nested type is local and anonymous (not a separate global type). 2. A complex type has nested within it a simple type which is derived through restriction with at least one facet, again nested,...
3
2707
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 1.1), some methods work, some don't. The error message I got is "org.apache.axis.types.URI$MalformedURIException: No scheme found in URI..."
7
2081
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 way to incorporate this functionality into apache2? I have also heard of the use of gSOAP. Can I use the gSoap with Apache Axis?
1
3432
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 simple type, I cannot consume methods that return complex objects. I have tried experimenting, with this, but am at a bit of loss on where the problem lies. When I call the services from a browser, I do get back the response that contains valid...
1
2226
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 CLASSPATH variable. The program runs normally when I launch it in a unix shell. Now, I want to launch this JAVA program in a PHP program with system() function for example. I have an Apache server with PHP 4 who runs. The
0
3959
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 initWSConnection() { try{ String biCatalogURL = "http://" + super.getServerHostName() + ":" + PORT_NUMBER + BI_CATALOG_DIRECTORY ; URL boConURL = new URL(biCatalogURL); boConnection = new Connection(boConURL); boSession = new...
2
2793
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) at java.lang.Class.newInstance(Class.java:259) at org.apache.03/17 15:45:03 info Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true 03/17 15:45:03 info Initializing,...
1
2797
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 Services. I post a SOAP request to DynamicsGPWebService.asmx web services and get a SOAP response that is handled in my java program using simple XML parsing. I want to achieve the same using objects in Apache AXIS. The first issue is that how can I...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.