• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Help on Axis AdminClient Error  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Axis and after following all installation/setup instructions, the axis webservice is up and happyaxis.jsp works fine.

When I try to execute the following command,

>java org.apache.axis.client.AdminClient list
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:4
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
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java
at org.apache.axis.client.AdminClient.<clinit>(AdminClient.java:48)

Seems to me that the code can not find class org.apache.commons.logging.LogFactory. While I think I have included required jars in my classpath as below.

>set classpath

Now I do not understand why that class inside commons-logging.jar could not be found. If the classpath does not work, org.apache.axis.client.AdminClient can not be found at the first place.

Appreciate for your kind help.
Yifei Hong
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, my fault, different versions of the jar files.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!