Getting Class Cast exception with custom impersonation in websphere 8.5 -


i writing custom impersonation in websphere 8.5. getting class cast exception at:

context ctx = new initialcontext(); portletservicehome pshimpersonate = (portletservicehome)    ctx.lookup(impersonationservice.jndi_name); 

the error is: java.lang.classcastexception: com.ibm.wps.services.portletserviceregistry.home.portletservicehomeimpl incompatible com.ibm.portal.portlet.service.portletservicehome

please suggest how fix error. checked online not getting proper help.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -