By now, most web containers have an annotation variant of their xml configurations for Java EE. I'm guessing this is because it's better to keep things in Java where they can be managed, coded with and controlled. The problem, however, still remains that with annotations you cannot efficiently debug and diagnose an issue because when an exception is thrown it doesn't give you the full stack but instead, just the head.
The reason why this happens is because annotations use reflection and debugging will not work in reflection unless a coder places their own breakpoints which is not always possible.
Does anyone have a way around this or has anyone experienced the same problem when fixing issues on a Java EE web application?