Axis class class cast exception when trying to call a SOAP serviceAxis class class cast exception when trying to call a SOAP servicehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=892840612024-03-29T08:31:29Z2024-03-29T08:31:29ZRE: Axis class class cast exception when trying to call a SOAP servicesarath thatavarthyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1151119612019-09-06T12:02:28Z2019-09-06T12:02:28ZFacing the same issue. Did you find the solution?Thanks in advancesarath thatavarthy2019-09-06T12:02:28ZRE: Axis class class cast exception when trying to call a SOAP servicerahul vyashttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1120773822019-01-21T14:59:48Z2019-01-21T14:59:48Zi am also facing the same issue in liferay 7. you got the solutionrahul vyas2019-01-21T14:59:48ZAxis class class cast exception when trying to call a SOAP serviceJP A.https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=892840602017-05-10T14:52:11Z2017-05-10T14:52:11Z<html><head></head><body>Hello, <br><br>I'm trying to consume a SOAP service from a portlet. However I'm getting an exception, it looks like a class loader issue, but I'm not sure why I'm getting this (in a OOTB LF 6.2 sp14 portal):<br><br><pre><code>14:33:03,421 ERROR [http-bio-8080-exec-13][XXXX:170] java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
at org.apache.axis.Message.setup(Message.java:352)
at org.apache.axis.Message.&lt;init&gt;(Message.java:246)
at org.apache.axis.client.Call.invoke(Call.java:2425)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)</code></pre><br><br> This is what I have in /mayapp/docroot/WEB-INF/liferay-plugin-package.properties:<br><pre><code>
portal-dependency-jars=\
jstl-api.jar,\
jstl-impl.jar,\
commons-discovery.jar,\
jaxrpc.jar,\
saaj-api.jar,\
wsdl4j.jar,\
axis.jar
</code></pre><br><br>And this is what I see in the deployed portlet:<br><br><pre><code>
axis.jar
log4j.jar
util-taglib.jar
jstl-impl.jar
log4j-extras.jar
util-java.jar
wsdl4j.jar
commons-discovery.jar
util-bridges.jar
commons-logging.jar
jaxrpc.jar
jstl-api.jar
saaj-api.jar
myapp-portlet-service.jar</code></pre><br><br>The axis.jar is the same jar found in ROOT/WEB-INF/lib.<br><br>I've been investigating and have tried a few things with no luck (removing the jar from the ROOT doesn't fee