felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Estermann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5343) JPA analyzer forces usage of imported packages without version.
Date Tue, 13 Sep 2016 13:25:20 GMT
Daniel Estermann created FELIX-5343:

             Summary: JPA analyzer forces usage of imported packages without version.
                 Key: FELIX-5343
                 URL: https://issues.apache.org/jira/browse/FELIX-5343
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-3.2.0
         Environment: An OSGi contanier (JBoss, Karaf) with 2 different Javassists deployed.
            Reporter: Daniel Estermann

I deploy 2 different versions of javassist in my OSGi containers: javassist-3.18.1-GA.jar
and javassist-3.15.0-GA.jar. Dependent on the wiring situation I get sometimes exceptions
caused by incompatibility of the both versions:
{code:none}HHH000142: Javassist Enhancement failed: com.estermann.testwab.TestWabEntity: java.lang.NoSuchMethodError:
To fix it I add version parameter on javassist import in my bundle plugin configuration:
      <Import-Package>javassist.util.proxy;version=3.18, *
But since bundle-plugin 3.2.0 (which includes [FELIX-5322|https://issues.apache.org/jira/browse/FELIX-5233])
having the Meta-Persistence instruction results in additional imported packages. So the resulting
manifest includes two imports of javassist.util.proxy:
...which results in
org.osgi.framework.BundleException: Duplicate import of package javassist.util for com.seeburger.estermann.testwab:0.0.1.SNAPSHOT
I would expect that two import declarations to get merged by the plugin.

This message was sent by Atlassian JIRA

View raw message