Eugenio Lentini created OLINGO-761:
--------------------------------------

             Summary: ODataApplication$MyProvider is not proxyable
                 Key: OLINGO-761
                 URL: https://issues.apache.org/jira/browse/OLINGO-761
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.4, V2 2.0.2
            Reporter: Eugenio Lentini


I am trying to deploy a web application into WildFly 8.2.0 along with a service 
REST written with JAX-RS,there are just a couple of resources and a class 
extending Application annotated with @ApplicationScoped.
The application has even a module OData based on Olingo OData 2, version 2.0.2.

During the deployment I get this exception
{code:borderStyle=solid}
Caused by: org.jboss.weld.exceptions.UnproxyableResolutionException: 
WELD-001437: Normal scoped bean class 
org.apache.olingo.odata2.core.rest.app.ODataApplication$MyProvider is not 
proxyable because the type is final or it contains a final method class 
org.apache.olingo.odata2.core.rest.app.ODataApplication$MyProvider - <unknown 
javax.enterprise.inject.spi.Bean instance>.
        at 
org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:229)
        at 
org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:178)
{code}

According to the documentation more or less all the injected beans are proxies, 
the final modifier prevent the subclass to be created.

Have you already got experience like that?
Thanks for the attention.

Eugenio



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to