When deploying a new EJB, for instance a PayPal payment plug-in in this case, the following error may appear during initialization.
[10/11/13 10:29:43:672 GMT-08:00] 00000023 EJSOAImpl W WSVR0056W: Tie class of com.mycompany.payment.plugin.EJSRemoteStatelessPayPalPluginHome_0a63a86d can not be found.
[10/11/13 10:29:43:706 GMT-08:00] 00000023 WC_PPC W PluginFactory setup() Failed to initialize the payment plug-in PayPal. The reported exception is: java.lang.ClassCastException: cannot cast class org.omg.stub.javax.ejb._EJBObject_Stub to interface com.mycompany.payment.plugin.PayPalPluginHome.
This indicates the corresponding Tie classes for the EJB are missing from the JAR. The setting in WCBD which controls this is "ejbdeploy.codegen" in build.properties. If this is set to 'true' Tie classes are not automatically generated. Change the setting to 'false' to allow RMIC generation of the Tie classes in your WCBD build.