2012-07-18 125 views
0

我正在两个应用程序服务器之间迁移轴1.2.1应用程序我收到以下类转换异常。org.apache.axis.transport.http.HTTPSender无法转换为org.apache.axis.Handler

Caused by: java.lang.ClassCastException: org.apache.axis.transport.http.HTTPSender cannot be cast to org.apache.axis.Handler 

有没有人见过这个? 我在做什么错?

+0

看看[这] [1]。希望这可以帮助! [1]:http://stackoverflow.com/questions/4566580/strange-interaction-with-axis-osgi – 2012-07-18 14:54:35

+0

对,检查它。但从我所能看到的没有真正的解决方案:) – 2012-07-18 15:07:22

回答

2

我有同样的问题,我看到它似乎是当您在部署目录的根目录中的一个jar和耳/战模块中的一个jar中使用轴。 classloader实例是axis lib的两倍,以便生成问题。

一种解决方案是将轴的调用从部署根目录中的jar移动到模块(如耳朵或类似的模块)。我希望这可以帮助你。

Regards

相关问题