Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commo

843833Nov 15 2005 — edited Nov 21 2005
I have a simple server program and a simple client program to test axis - soap-rpc style method using Topcat Apache 4.1.

I am getting errors while running my client program (for both methods - .jws as well as .wsdd)
Here is the errors:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.utils.Options.<clinit>(Options.java:35)
==================================

I AM USING FOLLOWING CLASSPATH:

c:\Axis\lib\axis.jar;
c:\Axis\lib\axis-ant.jar;
c:\Axis\lib\commons-discovery-0.2.jar;
c:\Axis\lib\commons-logging-1.0.4.jar;
c:\Axis\lib\jax-1_1-fr-qname-class.jar;
c:\Axis\lib\jaxrpc.jar;
c:\Axis\lib\log4j-1.2.8.jar;
c:\Axis\lib\saaj.jar;
c:\Axis\lib\wsdl4j-1.5.1.jar;
c:\Axis\lib\activation.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar

==================================

Based on the others recommendation I read I have changed some other version of "COMMANS-LOGGING.JAR", but still I am getting same errors.
Can anyone help me what may be wrong?



Help me!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2005
Added on Nov 15 2005
2 comments
9,035 views