Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help on Axis AdminClient Error  RSS feed

 
Yifei Hong
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!