运行ava org.apache.axis.client.AdminClient时找不到org.apache.commons.logging.LogFactory
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下即可
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。