liferay + ext插件时 外部集成webservice异常
异常:
AxisFault
faultCode:{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:java.lang.ClassCastException:org.apache.axis.attachments.AttachmentsImplcannotbecasttoorg.apache.axis.attachments.Attachments
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException:org.apache.axis.attachments.AttachmentsImplcannotbecasttoorg.apache.axis.attachments.Attachments
atorg.apache.axis.Message.setup(Message.java:352)
atorg.apache.axis.Message.<init>(Message.java:246)
atorg.apache.axis.client.Call.invoke(Call.java:2425)
atorg.apache.axis.client.Call.invoke(Call.java:2366)
atorg.apache.axis.client.Call.invoke(Call.java:1812)
atcom.lyasp.portlet.compositive.util.DynamicInvoker.invoke(DynamicInvoker.java:82)
atcom.lyasp.portlet.compositive.util.WebServiceUtil.getResultSetJson(WebServiceUtil.java:72)
atcom.lyasp.portlet.navigate.action.Navigate.serveResource(Navigate.java:129)
atcom.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:119)
atcom.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
atcom.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
atcom.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:747)
atcom.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:504)
atcom.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:871)
atcom.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:613)
atcom.liferay.portal.action.LayoutAction.execute(LayoutAction.java:232)
atorg.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
atcom.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:153)
atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:617)
atcom.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
atcom.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.jav:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:121)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
atcom.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:134)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:110)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:212)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
atcom.liferay.portal.servlet.I18nServlet.service(I18nServlet.java:102)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:240)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atcom.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
atcom.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
atcom.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
atjava.lang.Thread.run(Thread.java:619)
{http://xml.apache.org/axis/}hostname:XP-201108041305官方提供解决方案:
删除liferay自带的axis.jar及axis.*.jar