[
https://issues.apache.org/jira/browse/ARIES-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14610216#comment-14610216
]
Michał Woś commented on ARIES-1341:
-----------------------------------
I don't have simple example that could be attached. Steps to reproduce in my
case:
- create bundle with a bean that injects PersistenceContext and has methods
annotated with Transaction annotation
- in my case this bean is also an osgi service
- compile code with java 8
- install bundle in karaf-4.0.0 also running with java 8
BTW: I am trying to update JpaBeanProcessor code to have it working in my env.
As soon as I have it working I will attach sources.
> JpaBeanProcessor not working in karaf
> -------------------------------------
>
> Key: ARIES-1341
> URL: https://issues.apache.org/jira/browse/ARIES-1341
> Project: Aries
> Issue Type: Improvement
> Components: Blueprint, JPA
> Affects Versions: jpa-2.0.0
> Environment: karaf-4.0.0, java 8
> Reporter: Michał Woś
> Assignee: Christian Schneider
> Fix For: jpa-2.1.0, jpa-2.0.1
>
>
> * getAnnotation() return null because annotations are proxied (com.sun.proxy).
> * only top level class is scanned. super classes are not
> * only fields are scanned whereas target of persistence annotations is: TYPE,
> METHOD, FIELD
> * Setting persistence fields results in:
> Can not set javax.persistence.EntityManager field xxx to
> com.sun.proxy.$Proxy37
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)