cancel
Showing results for 
Search instead for 
Did you mean: 

Lookup local EJB(2.0) it return $Proxy class instead the home interface.

Former Member
0 Kudos

Hi,

I try to lookup local bean in different Ear file. The lookup methed return Proxy class instead the home interface,thus it make ClassCastException. Do you have any idea?

java.lang.ClassCastException: class $Proxy659:sap.com/Test_EAR aT com.sap.engine.boot.loader.ResourceMultiParentClassLoader@12a08f1@alive incompatible with interface thongie.test.LoveYouBeanLocalHome:sap.com/TEST_EJB_WEB At com.sap.engine.boot.loader.ResourceMultiParentClassLoader@3ce41d@alive

Accepted Solutions (1)

Accepted Solutions (1)

rolf_paulsen
Active Participant
0 Kudos

Hi,

a common trap in SAP NetWeaver Java. You must set an application reference between the two EARs.

I posted an OSS but almost no chance to fix it.

(You might also use Java Reflect api (see other posts in the forum), but this will make your software unreadable.)

Regards

Rolf

Former Member
0 Kudos

Hi,

Thanks a lot every one i can solve it by adding reference to another ear in the j2ee-engine.xml . Thanks again.

Answers (1)

Answers (1)

Former Member
0 Kudos

Would you mind sharing your code that leads to this error message?