Abhishek,

I had the same problem when I attempted to run Axis with the 1.4 version of
Java. When running Axis with Java 2 Standard Edition version 1.4 (J2SE
v1.4), it is necessary to setup the Endorsed Standards Override Mechanism.
XML parsers and other endorsed standards are included in the J2SE v1.4
release of Java.  The java.endorsed.dirs system property is used to override
the use of endorsed packages that are included in a Java release such as
J2SE v1.4.  The WEB-INF/lib directory containing the Axis jar files must be
added to the java.endorsed.dirs system property.

I am not an Axis expert but I did post a patch on the developers mail list a
while ago and I also posted the patch at the following URL.  The patch is
just the addition of Step Three to the modified installation instructions.

http://home.attbi.com/~danchisholm/axis/doc/install.html

Dan

----- Original Message -----
From: "Abhishek Agrawal" <[EMAIL PROTECTED]>
To: "axis-user" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 1:58 PM
Subject: Problem running the axis Web service example in the User guide


> Hi Everyone,
>
> I am new to axis, hence i am having some problem running the Webservice
> example given in the following link.
>
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.h
tml
>
> I think i copied all the files properly and i have also added all the
given
> .jar files into my classpath. But still when i run the example given the
above
> link
>
> % java samples.userguide.example2.CalcClient -p8080 add 2 5
>
> I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory
>         at org.apache.axis.utils.Options.<clinit>(Options.java:74)
>         at samples.userguide.example2.CalcClient.main(CalcClient.java:68)
>
> I think i might not have added  something in my classpath but i am not
able to
> figure out what ??
>
> This is how my classpath looks like.
> /home/aagrawal/java/j2sdk1.4.0/jre/lib/rt.jar:
> /home/aagrawal/java/ant-1.4.1/build/lib/ant.jar:
> /home/aagrawal/java/ant-1.4.1/lib/ant.jar:
> /home/pathport/java/tomcat-4.0.3/webapps/axis/:
> /home/aagrawal/java/axis-beta2/lib/axis.jar:
> /home/aagrawal/java/axis-beta2/clutil.jar:
> /home/aagrawal/java/axis-beta2/log4j-core.jar:
> /home/aagrawal/java/axis-beta2/wsdl4j.jar:
> /home/aagrawal/java/axis-beta2/commons-logging.jar:
> /home/aagrawal/java/axis-beta2/tt-bytecode.jar:
> /home/aagrawal/java/axis-beta2/jaxrpc.jar:
> /home/aagrawal/java/axis-beta2/junit.jar:
> /home/aagrawal/java/jaxb-1_0-ea/lib/jaxb-rt-1.0-ea.jar:
> /home/aagrawal/java/jaxb-1_0-ea/lib/jaxb-xjc-1.0-ea.jar:
> /home/aagrawal/java/xerces-1_4_4/xerces.jar:.
>
> I am running a tomcat server as must be clear from the above classpath.
>
> Can anyone help me .....
>
> Thanks,
> Abhishek
>

Reply via email to