在websphere 8.5中使用自定义模拟获取Class Cast异常

时间:2016-04-19 18:12:04

标签: websphere websphere-portal

我正在Websphere 8.5中编写自定义模拟。 我在:

获得了阶级演员异常
Context ctx = new InitialContext();
PortletServiceHome pshimpersonate = (PortletServiceHome)    ctx.lookup(ImpersonationService.JNDI_NAME);

错误是: java.lang.ClassCastException:com.ibm.wps.services.portletserviceregistry.home.PortletServiceHomeImpl与com.ibm.portal.portlet.service.PortletServiceHome不兼容

请建议如何解决此错误。我在网上查了但没有得到适当的帮助。

0 个答案:

没有答案
相关问题