-
1. Re: Problems with Reference Injection for @EJB-Annotation
waynebaylor Jul 16, 2007 5:25 PM (in response to markusschmitt)I've seen this error before when injecting a bean and not using it.
Try invoking one of the bean's methods as a dummy call and that error should go away. -
2. Re: Problems with Reference Injection for @EJB-Annotation
markusschmitt Jul 17, 2007 3:50 AM (in response to markusschmitt)Thanks for your help,
I added a dummy method call to the injected Calculator (calculator.add(1,1)), redeployed and the same exception occurs.
Regards
Markus -
3. Re: Problems with Reference Injection for @EJB-Annotation
wolfc Jul 17, 2007 4:00 AM (in response to markusschmitt)Where does it deploy the Calculator bean?
-
4. Re: Problems with Reference Injection for @EJB-Annotation
markusschmitt Jul 17, 2007 4:46 AM (in response to markusschmitt)Ok, I found the reason for the excpetion.
I extracted a Remote and a Local interface from the business interface.
So "implements CalculatorRemote, CalculatorLocal" (both extends Calculator) is the reason for the exception but I dont understand why! (implements Calculator works)
Regards
Markus -
5. Re: Problems with Reference Injection for @EJB-Annotation
wolfc Jul 17, 2007 6:28 AM (in response to markusschmitt)So Calculator is neither a local nor a remote business interface. Thus the exception.
Try:@EJB CalculatorLocal calculator;
-
6. Re: Problems with Reference Injection for @EJB-Annotation
markusschmitt Jul 17, 2007 7:57 AM (in response to markusschmitt)OK, thanks
problem resolved successfully :-)
Regards
Markus