b1ref = (b1) beanHome1.create();
b2ref = (b2) beanHome2.create();
I met "No mainInterface: otherwise di: xxxxxx" IllegalArgumentException when doing a call like the case above. I found that the changes in JIRA
OPENEJB-1328 caused this.
a quick solution would to give it a chance to set the only interface as maininterface in org.apache.openejb.core.ivm.BaseEjbProxyHandler.BaseEjbProxyHandler(BeanContext, Object, InterfaceType, List<Class>, Class).