• 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Help on Axis AdminClient Error  RSS feed

 
Greenhorn
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
5)
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.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
CLASSPATH=C:\software\axis-1_4\lib\axis.jar;C:\software\axis-1_4\lib\commons-dis
covery.jar;C:\software\axis-1_4\lib\commons-logging.jar;C:\software\axis-1_4\lib
\jaxrpc.jar;C:\software\axis-1_4\lib\saaj.jar;C:\software\axis-1_4\lib\log4j-1.2
.8.jar;C:\software\axis-1_4\lib\wsdl4j.jar;C:\software\axis-1_4\lib\xml-apis.jar
;C:\software\axis-1_4\lib\xercesImpl.jar

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
Greenhorn
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!