-
1. Re: Troubleshooting exceptions due to bad annotations
jcruise Mar 21, 2006 11:30 AM (in response to andrew.rw.robinson)I just had a similar error from adding a factory method annotation. The problem was that the method was private instead of public.
The only way that I've found to reliably track down this sort of error is to have the Seam source available and watch it in the debugger.
On the upside I am getting a bit more familiar with Seam's mechanics and less dependent on the docs. On the downside, the discovery learning mode is quite time-consuming :)
Cheers
J -
2. Re: Troubleshooting exceptions due to bad annotations
andrew.rw.robinson Mar 21, 2006 11:36 AM (in response to andrew.rw.robinson)I found the problem, I had two EJBs registered under the same name. One was supposed to be deleted (I guess I forgot to delete it) and it was registering on top of the other one. The old one had a bug in it (the begin method was not on the @Local interface of the EJB).
What stinks with EJB instead of POJO is that the resulting class is "$Proxy###" instead of a class name. It would be nice to know what interface the proxy implements. Oh well. -
3. Re: Troubleshooting exceptions due to bad annotations
jcruise Mar 21, 2006 11:55 AM (in response to andrew.rw.robinson)I've just migrated my app from ADF-Faces/JSP/Spring/Hibernate/JBPM to ADF-Faces/Facelets/Seam/EJB3. I didn't much enjoying taking on EJB - it slows down deployment, complicates class loading, debugging is ugly ... however, every time I thought about rolling back I held off because of the conciseness and elegance of the resultant Seam based source code. I found the uber-annotations approach is a bit confusing at first but now fear that I am getting addicted ...
I figure that this will be the way to go in the long run - I just hope that in time I will be able to redelpoy my app in more than twice without a server restart and that the restart will take less than 2.5 mins. :D
Cheers
J -
4. Re: Troubleshooting exceptions due to bad annotations
gavin.king Mar 22, 2006 1:23 AM (in response to andrew.rw.robinson)I agree that the proxy names are unhelpful. This also causes me problems from time to time. Add a feature request to JBoss EJB3 JIRA.
-
6. Re: Troubleshooting exceptions due to bad annotations
jjarkko Mar 22, 2006 2:59 PM (in response to andrew.rw.robinson)I too hate the current Proxy naming strategy. Is there a way to give a vote for the EJBTHREE-485 request ? ;)
-
7. Re: Troubleshooting exceptions due to bad annotations
gavin.king Mar 22, 2006 4:43 PM (in response to andrew.rw.robinson)Sure. Vote in JIRA.