开发者

Web Service Class Cast Exception

I am currently using JBoss 5.1.0 and have an ejb deployed that makes use of an WebService on a remote system. I recently received a new VM that had an updated JBoss configuration and now after deploying and when trying to call a method on the webservice, I get the following error.

java.lang.ClassCastException: org.jboss.ws.core.soap.SOAPElementImpl cannot be cast to javax.xml.soap.SOAPHeader

I have generated the java web service bindings from the WSDL and it has been working. There must be some classpath issue going on here but I am no开发者_运维百科t sure where to begin to look.

-Rob

Looks like the picketlink libraries were added to the JBoss instance for webservice security some some webservices that are deployed on that local instance. The remote web service I am calling does not make use of this.


This issue in jbossws-native-3.2.0 was fixed in jbossws-native-3.2.2. Please try upgrading.

Here is the relevant issue from the JBoss Web Services issue tracker:

JBWS-2746: ClassCastException because SOAPEnvelopeImpl blindly casts to SOAPElementImpl

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜