Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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.
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!