Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

GF4 complains about CDI failures, but I do not use CDI at all!

$
0
0

I can deploy my EAR on GF3, but when I want to deploy on GF4, it fails due to the following reason:

"CDI deployment failure:WELD-001524 Unable to load proxy class for bean ..." which is (according to server.log) caused by the fact that one of my session beans overwrites a protected (!) abstract method of its super class, and declares it 'final' (in fact I even didn't know that this is forbidden, as that method is not even part of any interface, BTW).

The point is that my EAR actually does not use CDI at all (it does not even contain a beans.xml indicator file)!

So I wonder whether (a) why it is forbidden since GF4 to declare 'final' at protected methods which are not part of any interface, and why (b) GF4 complains about CDI problems when I have no beans.xml anywhere in my EAR?

Thanks!
-Markus


Viewing all articles
Browse latest Browse all 1091

Trending Articles