Ok. so the solutions seems obvious to me.
I don't see the point of trying to fix a hack with another hack.
The original problem comes about because the old UCL added the root of
the ear to the classpath. This was a mistake, and was only done for debugging
purposes, i.e. to print the ear url in the toString() of the classloader.
We still do it for backwards compatiblity purposes, but now it is causing problems
for the annotation scanning.
So why don't we just turn it off?
If somebody really wants the old behaviour they can enable it.
But since it is not portable behaviour, it would be better for them to fix the packaging
anyway.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176509#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...