码迷,mamicode.com
首页 > Web开发 > 详细

运行ava org.apache.axis.client.AdminClient时找不到org.apache.commons.logging.LogFactory

时间:2015-04-03 11:20:15      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:axis

D:\Tomcat 5.0\webapps\axis\WEB-INF\classes>java org.apache.axis.client.AdminClie
nt
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.lo
gging.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)


抛出以上错误,系统环境变量里设置了Axis_HOME,并在ClassPath里添加了%Axis_HOME%\lib\axis.jar等Axis的几个包,也包含common-logging和log4j的包。

解决办法,将commons-logging.jar等axis jar包复制到你的项目classpath下即可

运行ava org.apache.axis.client.AdminClient时找不到org.apache.commons.logging.LogFactory

标签:axis

原文地址:http://blog.csdn.net/u013998070/article/details/44851887

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!