[ https://issues.apache.org/jira/browse/OLINGO-761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugenio Lentini updated OLINGO-761: ----------------------------------- Attachment: OlingoIssue.zip Hi Christian, here the maven project to replicate the issue. In beans.xml the attribute {code:title=beans.xml|borderStyle=solid} ... bean-discovery-mode="annotated" {code} produce the complete scanning by the container so the exception because WELD cannot subclass a final class. Just deploy the war in WildFly 8.2.0.Final to get the exception. Thanks for the attention. Eugenio > 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.2, V2 2.0.4 > Reporter: Eugenio Lentini > Assignee: Christian Amend > Attachments: OlingoIssue.zip > > > 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)