Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ClassCastException while calling ejb module

Hello everybody!

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 : [0] = com.sap.aii.af.lib.mp.module.ModuleHome

Interface : [1] = 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:

com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler@27f7c54f

Need any help.

PS: run PI 7.11EP6

Former Member
Not what you were looking for? View more on this topic or Ask a question