与Apache轴Soap客户端的常见日志记录罐冲突 [英] common logging jar conflict with apache axis soap client
问题描述
尝试使用axis调用SOAP Web服务时遇到此异常.基本上我已经写了一个Axis客户端.
I am getting this exception while trying to call SOAP webservice using axis. basically I have written a axis client.
org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory.
当我删除所有通用日志jar时,我可以删除这些错误,但是这些jar来自其他api,我无法控制它们.
When I remove the all the common-logging jars, I would able to remove these errors but these jars are coming from other apis, i dont have control on them.
有什么办法可以解决这个问题?
Is there any way to overcome this problem?
推荐答案
There is a pretty detailed explanation of what the issue may be and ways to debug it in the commons logging documentation. Your particular issue may be,
还有另一种更不寻常的方式,这种转换可能会失败: 即使二进制文件兼容,实现类也会在以下位置加载 运行时可能链接到LogFactory类的其他实例. 有关更多信息,请参见技术指南.
There is also another more unusual way in which this cast can fail: even when the binary is compatible, the implementation class loaded at runtime may be linked to a different instance of the LogFactory class. For more information, see the tech guide.
这篇关于与Apache轴Soap客户端的常见日志记录罐冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!