ClassCastException while calling ejb module
I have error when trying to call SOAP module. The initial context returns $Proxy514 object instead of ModuleHome
Object obj = initialContext.lookup( "localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean" );
I noticed that this module (com.sap.aii.adapter.soap.ejb.jar) XISOAPAdapterBean has 2 interfaces:
Interface :  = com.sap.aii.af.lib.mp.module.ModuleHome
Interface :  = com.sap.engine.services.ejb3.runtime.ComponentInterface
This is what I get if pass just "sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean" and than output this this object.toString into file.
I discovered that this is classloader issue, but didn't find any solution how to solve it. In NetWeaver Admin I can see this module and it's interfaces and they are Module, ModuleLocal, ModuleHome etc. But when I call lookup it gives me following class instance:
Need any help.
PS: run PI 7.11EP6