Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7377

mark openjpa as dependency in Camel JPA feature

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.12.3, 2.13.0
    • Fix Version/s: 2.12.4, 2.13.1, 2.14.0
    • Component/s: camel-jpa, karaf
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      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>

      This problem apears when you have openjpa 2.3.0 installed and with to install camel-jpa 2.12.3 feature.
      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.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ieugen Ioan Eugen Stan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: