cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Client implementation - java.lang.ClassCastException

Former Member
0 Kudos

Hi,

We are trying to implement a WebService Client for the secure Webservice. I have created a deployable proxy client and deployed it on the server, our basis has attached the X509 certificate to the proxy in VA. Test Destination is successful. I have exposed the client as public part in the ws client dc project.I have created a used dc relationship to the webservice client project in my EP Component project. I'm trying to use this client in a AbstractPortal component with following code

SECQANDA seq = (SECQANDA) ctx.lookup("<JNDI location");

I get a ClassCastException on this line

java.lang.ClassCastException: <package>.SECQANDAImpl incompatible with <package>.SECQANDA

Have anyone faced this problem? How do I resolve this error?

Appreciate any help.

Thanks,

Giri.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Giri, looks like the lookup returns an instance of SECQANDAImpl. Try the following:

SECQANDAImpl seq = (SECQANDAImpl) ctx.lookup("<JNDI location");

Martin

Edited by: Martin Sommer on Mar 30, 2011 9:15 AM

Former Member
0 Kudos

Hi Martin,

Appreciate your response. I'm not able to cast to SECQANDAImpl because this implementaion class is not in my DC. What I understand is it gets implemented on deployment of the deployable proxy. Does that ring any bell?

Thanks,

Giri.