You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Michiel Vermandel <mv...@yahoo.com> on 2012/11/19 16:21:16 UTC

Failure to get geronimo-jpa running in felix

Hi,

I am trying to get geronimo-jpa running in felix.
This is my set of installed bundles:

lb
START LEVEL 2
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (4.0.3)
    1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
    2|Active     |    2|Apache Felix File Install (3.2.4)
    3|Active     |    2|Apache Felix Gogo Command (0.12.0)
    4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
    5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
    6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
    7|Active     |    2|Aries JPA Container API (1.0.0)
    8|Installed  |    2|Aries JPA Container (1.0.0)
    9|Installed  |    2|Aries JPA Container blueprint integration for Aries blueprint (1.0.0)
   10|Installed  |    2|Apache Aries blog sample (0.3.0)
   12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
   13|Active     |    2|Apache Jakarta log4j Plug-in (1.2.15.v201012070815)
   14|Active     |    2|slf4j-api (1.6.4)
   15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
   16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
   17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
   18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
   19|Resolved   |    2|slf4j-log4j12 (1.6.4)
   20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
   21|Active     |    2|Apache Aries blog sample API (0.3.0)
   22|Active     |    2|Apache Aries Util (1.0.0)
   23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
   24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)

I get this error:


ERROR: Bundle org.apache.aries.jpa.container [8] Error starting file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar (org.osgi.framework.Bundl
eException: Uses constraint violation. Unable to resolve bundle revision org.apache.aries.jpa.container [8.0] because it is exposed to package 'javax.transaction.xa' from bundle re
visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and org.apache.felix.framework [0] via two dependency chains.

Chain 1:
  org.apache.aries.jpa.container [8.0]
    import: (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
     |
    export: osgi.wiring.package=javax.transaction.xa
  org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]

Chain 2:
  org.apache.aries.jpa.container [8.0]
    import: (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
     |
    export: osgi.wiring.package=javax.persistence.criteria; uses:=javax.sql
  org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
    import: (osgi.wiring.package=javax.sql)
     |
    export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
    export: osgi.wiring.package=javax.transaction.xa
  org.apache.felix.framework [0])


Any idea how to solve this?

Thanks a lot!

Michiel

 
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials

Re: Failure to get geronimo-jpa running in felix

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 11/20/12 06:35, Michiel Vermandel wrote:
> Thanks for the suggestion. I will try.
>
> Why is it that hard to get a working Felix/Aries setup?

Not sure.

Probably because the JRE includes crappy versions of some packages that 
ultimately need to be replaced in upper levels. I think that is the case 
with the transactions package.

-> richard

> I'd like to see an archive containing a working setup for deploying the Aries (JPA) examples.
> Eg Felix 4.0.3 with Aries 1.0 pre-installed, or a detailed help file on how to do this.
> Anyone having such an installation available?
>
> Thanks
>
> Michiel
>
>
>   
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
>   From: Richard S. Hall <he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, November 20, 2012 12:00 PM
> Subject: Re: Failure to get geronimo-jpa running in felix
>   
> Probably the simplest thing to do is to try to eliminate
> javax.transactions from the system bundle...
>
> To do this, you'll need to copy the org.osgi.framework.system.packages
> property out of the default.properties file inside the felix.jar file
> and put it into the conf/config.properties files...the value is quite big.
>
> It uses property substitution based on the JVM to set the value, but you
> can just pick the value you want and then delete the transactions
> package from it.
>
> Not sure if that will solve your issues, but it is a good bet.
>
> -> richard
>
> On 11/19/12 10:21, Michiel Vermandel wrote:
>> Hi,
>>
>> I am trying to get geronimo-jpa running in felix.
>> This is my set of installed bundles:
>>
>> lb
>> START LEVEL 2
>>       ID|State      |Level|Name
>>        0|Active     |    0|System Bundle (4.0.3)
>>        1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
>>        2|Active     |    2|Apache Felix File Install (3.2.4)
>>        3|Active     |    2|Apache Felix Gogo Command (0.12.0)
>>        4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
>>        5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
>>        6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
>>        7|Active     |    2|Aries JPA Container API (1.0.0)
>>        8|Installed  |    2|Aries JPA Container (1.0.0)
>>        9|Installed  |    2|Aries JPA Container blueprint integration for Aries blueprint (1.0.0)
>>       10|Installed  |    2|Apache Aries blog sample (0.3.0)
>>       12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
>>       13|Active     |    2|Apache Jakarta log4j Plug-in (1.2.15.v201012070815)
>>       14|Active     |    2|slf4j-api (1.6.4)
>>       15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
>>       16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
>>       17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
>>       18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
>>       19|Resolved   |    2|slf4j-log4j12 (1.6.4)
>>       20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
>>       21|Active     |    2|Apache Aries blog sample API (0.3.0)
>>       22|Active     |    2|Apache Aries Util (1.0.0)
>>       23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
>>       24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)
>>
>> I get this error:
>>
>>
>> ERROR: Bundle org.apache.aries.jpa.container [8] Error starting file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar (org.osgi.framework.Bundl
>> eException: Uses constraint violation. Unable to resolve bundle revision org.apache.aries.jpa.container [8.0] because it is exposed to package 'javax.transaction.xa' from bundle re
>> visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and org.apache.felix.framework [0] via two dependency chains.
>>
>> Chain 1:
>>      org.apache.aries.jpa.container [8.0]
>>        import: (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
>>         |
>>        export: osgi.wiring.package=javax.transaction.xa
>>      org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]
>>
>> Chain 2:
>>      org.apache.aries.jpa.container [8.0]
>>        import: (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
>>         |
>>        export: osgi.wiring.package=javax.persistence.criteria; uses:=javax.sql
>>      org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
>>        import: (osgi.wiring.package=javax.sql)
>>         |
>>        export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
>>        export: osgi.wiring.package=javax.transaction.xa
>>      org.apache.felix.framework [0])
>>
>>
>> Any idea how to solve this?
>>
>> Thanks a lot!
>>
>> Michiel
>>
>>    
>> -----------------
>> http://www.codessentials.com - Your essential software, for free!
>> Follow us at http://twitter.com/#!/Codessentials
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Failure to get geronimo-jpa running in felix

Posted by Michiel Vermandel <mv...@yahoo.com>.
Hi Alexey ,

Hi, I might try Karaf as it seems to be up-to-date now (Karaf 2.3.0 has Felix 4.0.3 and Aries 1.0).
I need these versions because I want to use Aries blueprint annotation scanning in order to be able to have fragments that provide JPA entities.
According to some Aries gurus (Holly Cummins and Timothy Ward) I need Felix 4.0.3 for the annotation scanning.

Well, I downloaded it :-)

I saw that it includes both Felix and Eclipse Equinox. 
How do I need to see that? Are they used both? Do I need to choose?


@Richard: I do get the framework started now by overriding the org.osgi.framework.system.packages setting in the conf/config.properties file.
Now trying to get it actually working...

Thanks,

Michiel

 
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials


________________________________
 From: Alexey Romanov <al...@gmail.com>
To: users <us...@felix.apache.org>; Michiel Vermandel <mv...@yahoo.com> 
Sent: Tuesday, November 20, 2012 12:40 PM
Subject: Re: Failure to get geronimo-jpa running in felix
 
What about Karaf 2.3.0 (http://karaf.apache.org/)? It comes with a bit more
than just Felix+Aries, but you could ignore it.

Yours, Alexey Romanov


On Tue, Nov 20, 2012 at 3:35 PM, Michiel Vermandel <mv...@yahoo.com>wrote:

> Thanks for the suggestion. I will try.
>
> Why is it that hard to get a working Felix/Aries setup?
> I'd like to see an archive containing a working setup for deploying the
> Aries (JPA) examples.
> Eg Felix 4.0.3 with Aries 1.0 pre-installed, or a detailed help file on
> how to do this.
> Anyone having such an installation available?
>
> Thanks
>
> Michiel
>
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
>  From: Richard S. Hall <he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, November 20, 2012 12:00 PM
> Subject: Re: Failure to get geronimo-jpa running in felix
>
> Probably the simplest thing to do is to try to eliminate
> javax.transactions from the system bundle...
>
> To do this, you'll need to copy the org.osgi.framework.system.packages
> property out of the default.properties file inside the felix.jar file
> and put it into the conf/config.properties files...the value is quite big.
>
> It uses property substitution based on the JVM to set the value, but you
> can just pick the value you want and then delete the transactions
> package from it.
>
> Not sure if that will solve your issues, but it is a good bet.
>
> -> richard
>
> On 11/19/12 10:21, Michiel Vermandel wrote:
> > Hi,
> >
> > I am trying to get geronimo-jpa running in felix.
> > This is my set of installed bundles:
> >
> > lb
> > START LEVEL 2
> >     ID|State      |Level|Name
> >      0|Active     |    0|System Bundle (4.0.3)
> >      1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
> >      2|Active     |    2|Apache Felix File Install (3.2.4)
> >      3|Active     |    2|Apache Felix Gogo Command (0.12.0)
> >      4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
> >      5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
> >      6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
> >      7|Active     |    2|Aries JPA Container API (1.0.0)
> >      8|Installed  |    2|Aries JPA Container (1.0.0)
> >      9|Installed  |    2|Aries JPA Container blueprint integration for
> Aries blueprint (1.0.0)
> >     10|Installed  |    2|Apache Aries blog sample (0.3.0)
> >     12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
> >     13|Active     |    2|Apache Jakarta log4j Plug-in
> (1.2.15.v201012070815)
> >     14|Active     |    2|slf4j-api (1.6.4)
> >     15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
> >     16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
> >     17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
> >     18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
> >     19|Resolved   |    2|slf4j-log4j12 (1.6.4)
> >     20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
> >     21|Active     |    2|Apache Aries blog sample API (0.3.0)
> >     22|Active     |    2|Apache Aries Util (1.0.0)
> >     23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
> >     24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)
> >
> > I get this error:
> >
> >
> > ERROR: Bundle org.apache.aries.jpa.container [8] Error starting
> file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar
> (org.osgi.framework.Bundl
> > eException: Uses constraint violation. Unable to resolve bundle revision
> org.apache.aries.jpa.container [8.0] because it is exposed to package
> 'javax.transaction.xa' from bundle re
> > visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and
> org.apache.felix.framework [0] via two dependency chains.
> >
> > Chain 1:
> >    org.apache.aries.jpa.container [8.0]
> >      import:
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
> >       |
> >      export: osgi.wiring.package=javax.transaction.xa
> >    org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]
> >
> > Chain 2:
> >    org.apache.aries.jpa.container [8.0]
> >      import:
> (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
> >       |
> >      export: osgi.wiring.package=javax.persistence.criteria;
> uses:=javax.sql
> >    org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
> >      import: (osgi.wiring.package=javax.sql)
> >       |
> >      export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
> >      export: osgi.wiring.package=javax.transaction.xa
> >    org.apache.felix.framework [0])
> >
> >
> > Any idea how to solve this?
> >
> > Thanks a lot!
> >
> > Michiel
> >
> >
> > -----------------
> > http://www.codessentials.com - Your essential software, for free!
> > Follow us at http://twitter.com/#!/Codessentials
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

Re: Failure to get geronimo-jpa running in felix

Posted by Alexey Romanov <al...@gmail.com>.
What about Karaf 2.3.0 (http://karaf.apache.org/)? It comes with a bit more
than just Felix+Aries, but you could ignore it.

Yours, Alexey Romanov


On Tue, Nov 20, 2012 at 3:35 PM, Michiel Vermandel <mv...@yahoo.com>wrote:

> Thanks for the suggestion. I will try.
>
> Why is it that hard to get a working Felix/Aries setup?
> I'd like to see an archive containing a working setup for deploying the
> Aries (JPA) examples.
> Eg Felix 4.0.3 with Aries 1.0 pre-installed, or a detailed help file on
> how to do this.
> Anyone having such an installation available?
>
> Thanks
>
> Michiel
>
>
>
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials
>
>
> ________________________________
>  From: Richard S. Hall <he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, November 20, 2012 12:00 PM
> Subject: Re: Failure to get geronimo-jpa running in felix
>
> Probably the simplest thing to do is to try to eliminate
> javax.transactions from the system bundle...
>
> To do this, you'll need to copy the org.osgi.framework.system.packages
> property out of the default.properties file inside the felix.jar file
> and put it into the conf/config.properties files...the value is quite big.
>
> It uses property substitution based on the JVM to set the value, but you
> can just pick the value you want and then delete the transactions
> package from it.
>
> Not sure if that will solve your issues, but it is a good bet.
>
> -> richard
>
> On 11/19/12 10:21, Michiel Vermandel wrote:
> > Hi,
> >
> > I am trying to get geronimo-jpa running in felix.
> > This is my set of installed bundles:
> >
> > lb
> > START LEVEL 2
> >     ID|State      |Level|Name
> >      0|Active     |    0|System Bundle (4.0.3)
> >      1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
> >      2|Active     |    2|Apache Felix File Install (3.2.4)
> >      3|Active     |    2|Apache Felix Gogo Command (0.12.0)
> >      4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
> >      5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
> >      6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
> >      7|Active     |    2|Aries JPA Container API (1.0.0)
> >      8|Installed  |    2|Aries JPA Container (1.0.0)
> >      9|Installed  |    2|Aries JPA Container blueprint integration for
> Aries blueprint (1.0.0)
> >     10|Installed  |    2|Apache Aries blog sample (0.3.0)
> >     12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
> >     13|Active     |    2|Apache Jakarta log4j Plug-in
> (1.2.15.v201012070815)
> >     14|Active     |    2|slf4j-api (1.6.4)
> >     15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
> >     16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
> >     17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
> >     18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
> >     19|Resolved   |    2|slf4j-log4j12 (1.6.4)
> >     20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
> >     21|Active     |    2|Apache Aries blog sample API (0.3.0)
> >     22|Active     |    2|Apache Aries Util (1.0.0)
> >     23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
> >     24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)
> >
> > I get this error:
> >
> >
> > ERROR: Bundle org.apache.aries.jpa.container [8] Error starting
> file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar
> (org.osgi.framework.Bundl
> > eException: Uses constraint violation. Unable to resolve bundle revision
> org.apache.aries.jpa.container [8.0] because it is exposed to package
> 'javax.transaction.xa' from bundle re
> > visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and
> org.apache.felix.framework [0] via two dependency chains.
> >
> > Chain 1:
> >    org.apache.aries.jpa.container [8.0]
> >      import:
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
> >       |
> >      export: osgi.wiring.package=javax.transaction.xa
> >    org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]
> >
> > Chain 2:
> >    org.apache.aries.jpa.container [8.0]
> >      import:
> (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
> >       |
> >      export: osgi.wiring.package=javax.persistence.criteria;
> uses:=javax.sql
> >    org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
> >      import: (osgi.wiring.package=javax.sql)
> >       |
> >      export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
> >      export: osgi.wiring.package=javax.transaction.xa
> >    org.apache.felix.framework [0])
> >
> >
> > Any idea how to solve this?
> >
> > Thanks a lot!
> >
> > Michiel
> >
> >
> > -----------------
> > http://www.codessentials.com - Your essential software, for free!
> > Follow us at http://twitter.com/#!/Codessentials
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

Re: Failure to get geronimo-jpa running in felix

Posted by Michiel Vermandel <mv...@yahoo.com>.
Thanks for the suggestion. I will try.

Why is it that hard to get a working Felix/Aries setup?
I'd like to see an archive containing a working setup for deploying the Aries (JPA) examples.
Eg Felix 4.0.3 with Aries 1.0 pre-installed, or a detailed help file on how to do this.
Anyone having such an installation available?

Thanks

Michiel


 
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials


________________________________
 From: Richard S. Hall <he...@ungoverned.org>
To: users@felix.apache.org 
Sent: Tuesday, November 20, 2012 12:00 PM
Subject: Re: Failure to get geronimo-jpa running in felix
 
Probably the simplest thing to do is to try to eliminate 
javax.transactions from the system bundle...

To do this, you'll need to copy the org.osgi.framework.system.packages 
property out of the default.properties file inside the felix.jar file 
and put it into the conf/config.properties files...the value is quite big.

It uses property substitution based on the JVM to set the value, but you 
can just pick the value you want and then delete the transactions 
package from it.

Not sure if that will solve your issues, but it is a good bet.

-> richard

On 11/19/12 10:21, Michiel Vermandel wrote:
> Hi,
>
> I am trying to get geronimo-jpa running in felix.
> This is my set of installed bundles:
>
> lb
> START LEVEL 2
>     ID|State      |Level|Name
>      0|Active     |    0|System Bundle (4.0.3)
>      1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
>      2|Active     |    2|Apache Felix File Install (3.2.4)
>      3|Active     |    2|Apache Felix Gogo Command (0.12.0)
>      4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
>      5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
>      6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
>      7|Active     |    2|Aries JPA Container API (1.0.0)
>      8|Installed  |    2|Aries JPA Container (1.0.0)
>      9|Installed  |    2|Aries JPA Container blueprint integration for Aries blueprint (1.0.0)
>     10|Installed  |    2|Apache Aries blog sample (0.3.0)
>     12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
>     13|Active     |    2|Apache Jakarta log4j Plug-in (1.2.15.v201012070815)
>     14|Active     |    2|slf4j-api (1.6.4)
>     15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
>     16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
>     17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
>     18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
>     19|Resolved   |    2|slf4j-log4j12 (1.6.4)
>     20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
>     21|Active     |    2|Apache Aries blog sample API (0.3.0)
>     22|Active     |    2|Apache Aries Util (1.0.0)
>     23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
>     24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)
>
> I get this error:
>
>
> ERROR: Bundle org.apache.aries.jpa.container [8] Error starting file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar (org.osgi.framework.Bundl
> eException: Uses constraint violation. Unable to resolve bundle revision org.apache.aries.jpa.container [8.0] because it is exposed to package 'javax.transaction.xa' from bundle re
> visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and org.apache.felix.framework [0] via two dependency chains.
>
> Chain 1:
>    org.apache.aries.jpa.container [8.0]
>      import: (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
>       |
>      export: osgi.wiring.package=javax.transaction.xa
>    org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]
>
> Chain 2:
>    org.apache.aries.jpa.container [8.0]
>      import: (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
>       |
>      export: osgi.wiring.package=javax.persistence.criteria; uses:=javax.sql
>    org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
>      import: (osgi.wiring.package=javax.sql)
>       |
>      export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
>      export: osgi.wiring.package=javax.transaction.xa
>    org.apache.felix.framework [0])
>
>
> Any idea how to solve this?
>
> Thanks a lot!
>
> Michiel
>
>  
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

Re: Failure to get geronimo-jpa running in felix

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Probably the simplest thing to do is to try to eliminate 
javax.transactions from the system bundle...

To do this, you'll need to copy the org.osgi.framework.system.packages 
property out of the default.properties file inside the felix.jar file 
and put it into the conf/config.properties files...the value is quite big.

It uses property substitution based on the JVM to set the value, but you 
can just pick the value you want and then delete the transactions 
package from it.

Not sure if that will solve your issues, but it is a good bet.

-> richard

On 11/19/12 10:21, Michiel Vermandel wrote:
> Hi,
>
> I am trying to get geronimo-jpa running in felix.
> This is my set of installed bundles:
>
> lb
> START LEVEL 2
>     ID|State      |Level|Name
>      0|Active     |    0|System Bundle (4.0.3)
>      1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
>      2|Active     |    2|Apache Felix File Install (3.2.4)
>      3|Active     |    2|Apache Felix Gogo Command (0.12.0)
>      4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
>      5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
>      6|Active     |    2|Apache Derby 10.8 (10.8.2000002.1181258)
>      7|Active     |    2|Aries JPA Container API (1.0.0)
>      8|Installed  |    2|Aries JPA Container (1.0.0)
>      9|Installed  |    2|Aries JPA Container blueprint integration for Aries blueprint (1.0.0)
>     10|Installed  |    2|Apache Aries blog sample (0.3.0)
>     12|Installed  |    2|Apache Aries blog sample web component (0.3.0)
>     13|Active     |    2|Apache Jakarta log4j Plug-in (1.2.15.v201012070815)
>     14|Active     |    2|slf4j-api (1.6.4)
>     15|Active     |    2|Aries JPA Container Managed Contexts (1.0.0)
>     16|Installed  |    2|Apache Aries blog sample persistence (0.3.0)
>     17|Active     |    2|Apache Aries Proxy Bundle (1.0.0)
>     18|Active     |    2|Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1.0)
>     19|Resolved   |    2|slf4j-log4j12 (1.6.4)
>     20|Installed  |    2|OpenJPA Aggregate Jar (2.2.0)
>     21|Active     |    2|Apache Aries blog sample API (0.3.0)
>     22|Active     |    2|Apache Aries Util (1.0.0)
>     23|Installed  |    2|Apache Aries Blueprint Bundle (1.0.0)
>     24|Active     |    2|geronimo-jta_1.1_spec (1.1.1)
>
> I get this error:
>
>
> ERROR: Bundle org.apache.aries.jpa.container [8] Error starting file:/C:/Data/tools/felix-framework-4.0.3/plugins/org.apache.aries.jpa.container-1.0.0.jar (org.osgi.framework.Bundl
> eException: Uses constraint violation. Unable to resolve bundle revision org.apache.aries.jpa.container [8.0] because it is exposed to package 'javax.transaction.xa' from bundle re
> visions org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0] and org.apache.felix.framework [0] via two dependency chains.
>
> Chain 1:
>    org.apache.aries.jpa.container [8.0]
>      import: (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(!(version>=2.0.0)))
>       |
>      export: osgi.wiring.package=javax.transaction.xa
>    org.apache.geronimo.specs.geronimo-jta_1.1_spec [24.0]
>
> Chain 2:
>    org.apache.aries.jpa.container [8.0]
>      import: (&(osgi.wiring.package=javax.persistence.criteria)(version>=1.1.0)(!(version>=2.1.0)))
>       |
>      export: osgi.wiring.package=javax.persistence.criteria; uses:=javax.sql
>    org.apache.geronimo.specs.geronimo-jpa_2.0_spec [18.0]
>      import: (osgi.wiring.package=javax.sql)
>       |
>      export: osgi.wiring.package=javax.sql; uses:=javax.transaction.xa
>      export: osgi.wiring.package=javax.transaction.xa
>    org.apache.felix.framework [0])
>
>
> Any idea how to solve this?
>
> Thanks a lot!
>
> Michiel
>
>   
> -----------------
> http://www.codessentials.com - Your essential software, for free!
> Follow us at http://twitter.com/#!/Codessentials


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org