1 Reply Latest reply on May 8, 2011 11:44 PM by ozizka

    WELD-001437 Normal scoped bean ... is not proxyable because the type is final...

    ozizka

      Hi, I just started with CDI. I tried


         @Produces @SessionScoped @Named(user) public String getUser() {
            return CDI test;
         }


      But got:


        WELD-001437 Normal scoped bean class java.lang.String is not proxyable because the type is final or it contains a final method class java.lang.String.


      What does it mean exactly? Obviously, I'm missing some rules what can be done in CDI and what not. What is it?


      Thanks,
      Ondra