[ 
https://issues.apache.org/jira/browse/CAMEL-7377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ioan Eugen Stan updated CAMEL-7377:
-----------------------------------

    Description: 
I believe Camel-JPA feature should mark openjpa bundle as a dependency becasue 
it conflicts with open-jpa 2.3.0. 

Currently camel-jpa feature.xml defines: 
```
<bundle>mvn:org.apache.openjpa/openjpa/2.2.2</bundle>
```
and should be <bundle 
dependency="true">mvn:org.apache.openjpa/openjpa/2.2.2</bundle> 

Not marking the bundle as a dependency results in camel-jpa pulling the OpenJPA 
2.2.2 bundle even if karaf has OpenJpa 2.3.0. Since both bundles try to 
register a PersistenceProvider in OSgi, the second one fails and the bundle 
fails to start - so camel-jpa feature is not installed.   

  was:
I believe Camel-JPA feature should mark openjpa bundle as a dependency becasue 
it conflicts with open-jpa 2.3.0. 

Currently camel-jpa feature.xml defines: 
```
<bundle>mvn:org.apache.openjpa/openjpa/2.2.2</bundle>
```
and should be <bundle 
dependency="true">mvn:org.apache.openjpa/openjpa/2.2.2</bundle> 

Not marking the bundle as a dependency results in camel-jpa pulling the OpenJPA 
2.2.2 bundle even if karaf has OpenJpa 2.3.0. Since both bundles try to 
register a PersistenceProvider in OSgi, the second one fails and the bundle 
fails to start.   


> mark openjpa as dependency in Camel JPA feature 
> ------------------------------------------------
>
>                 Key: CAMEL-7377
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7377
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jpa
>    Affects Versions: 2.12.3, 2.13.0
>            Reporter: Ioan Eugen Stan
>
> I believe Camel-JPA feature should mark openjpa bundle as a dependency 
> becasue it conflicts with open-jpa 2.3.0. 
> Currently camel-jpa feature.xml defines: 
> ```
> <bundle>mvn:org.apache.openjpa/openjpa/2.2.2</bundle>
> ```
> and should be <bundle 
> dependency="true">mvn:org.apache.openjpa/openjpa/2.2.2</bundle> 
> Not marking the bundle as a dependency results in camel-jpa pulling the 
> OpenJPA 2.2.2 bundle even if karaf has OpenJpa 2.3.0. Since both bundles try 
> to register a PersistenceProvider in OSgi, the second one fails and the 
> bundle fails to start - so camel-jpa feature is not installed.   



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to