If I use JBoss 6.0.0, application exceptions are wrapped into WeldException. I'm using CDI and it seems to be the same problem as : http://community.jboss.org/thread/169420
I'm using Bean Managed Transactions (@TransactionManagement(TransactionManagementType.BEAN)
). I've tried with Container-Managed Transactions, and everything works perfectly, but I have to use Bean-Managed Transactions :(
Carlo, maybe it also looks like https://issues.jboss.org/browse/JBAS-9443 . Of course I'm not using Stateful Bean, so bean destruction is not a problem, but application exceptions are wrapped into EjbException in that bug as well.