You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Ivanhoe Abrahams <iv...@gmail.com> on 2011/01/16 18:25:53 UTC
Dependency on deprecated classes
Hi
I just tried to install apache aries on Karaf, and I noticed a dependency on
"org.osgi.service.framework" which seems to be only implemented by equinox.
I was just wondering if there is a workaround so that I can install it on
Felix as well.
Thanks
Ivanhoe
BTW. It would be really great if someone has a ready made karaf feature file
for apache aries.
Re: Dependency on deprecated classes
Posted by Alasdair Nottingham <no...@apache.org>.
Having deployed these bundles I get a different set of problems. These are fixed by deploying bundles with asm, slf4j and the jpa, JTA and config manager interface bundles. Also you shouldn't have org.apache.aries.application-0.3-SNAPSHOT and org.apache.aries.application.runtime-0.3-SNAPSHOT
Alasdair.
Alasdair Nottingham
On 19 Jan 2011, at 18:52, Valentin Mahrwald <vm...@googlemail.com> wrote:
> That resolver failure seems to suggest that org.apache.aries.proxy-0.3-incubating-SNAPSHOT (although it is not clear which bundle 17.0 refers to) has a dependency on org.osgi.service.framework, which it does not seem to happen in my current workspace build. Does that rime with what you can see in the console?
>
> Regards,
>
> Valentin
>
> On 19 Jan 2011, at 18:12, Ivanhoe Abrahams wrote:
>
>> Hi Mark
>>
>> Please can you explain the workaround a bit more?
>>
>> I have the following bundles deployed in a clean Felix 3.0.7 deploy (along with some other bundles)
>>
>> org.apache.aries.util-0.3-SNAPSHOT
>> org.apache.aries.quiesce.api-0.3-SNAPSHOT
>> org.apache.aries.proxy-0.3-incubating-SNAPSHOT
>> org.apache.aries.jpa.container-0.3-SNAPSHOT
>> org.apache.aries.jpa.container.context-0.3-SNAPSHOT
>> org.apache.aries.jpa.blueprint.aries-0.3-SNAPSHOT
>> org.apache.aries.jpa.api-0.3-SNAPSHOT
>> org.apache.aries.blueprint-0.3-SNAPSHOT
>> org.apache.aries.application-0.3-SNAPSHOT
>> org.apache.aries.application.runtime-0.3-SNAPSHOT
>> org.apache.aries.application.api-0.3-SNAPSHOT
>>
>> However in startup immediately get following error message
>>
>> ERROR: Error starting file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application-0.3-SNAPSHOT.jar
>> (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application [9]: Unable to resolv
>> e 9.0: missing requirement [9.0] package; (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0))) [ca
>> used by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version>=0.3.0)(
>> !(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi.service.
>> framework)(version>=1.0.0)(!(version>=2.0.0)))]])
>> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application [9]: Unable to resolve
>> 9.0: missing requirement [9.0] package; (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0))) [caus
>> ed by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version>=0.3.0)(!(
>> version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi.service.fr
>> amework)(version>=1.0.0)(!(version>=2.0.0)))]]
>> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
>> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
>> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>> at java.lang.Thread.run(Thread.java:619)
>> ERROR: Error starting file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application.runtime-0.3-SNAP
>> SHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application.runtime [11]:
>> Unable to resolve 11.0: missing requirement [11.0] package; (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(ve
>> rsion>=2.0.0))) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.prox
>> y)(version>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(packag
>> e=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]])
>> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application.runtime [11]: Unable to
>> resolve 11.0: missing requirement [11.0] package; (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0
>> .0))) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version
>> >=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi
>> .service.framework)(version>=1.0.0)(!(version>=2.0.0)))]]
>>
>> if I deploy equinox osgi-3.5.0.v20090520.jar as well, the startup process proceeds much further until it gets other errors unrelated to aries.
>>
>> So as you can see I have included "org.apache.aries.application.runtime" bundle but to no avail.
>> Do you mean that I need check out trunk and change something in one of the pom.xml files and then build?
>>
>> I would really like to try the latest version of aries on Felix.
>>
>> Thanks in advance
>> Regards
>> Ivanhoe
>>
>>
>>
>>
>> On Sun, Jan 16, 2011 at 8:17 PM, Mark Nuttall <mn...@apache.org> wrote:
>> Hello Ivanhoe,
>> The org.osgi.service.framework API is still under development within
>> the OSGi Alliance. It's subject to ongoing change, which is what
>> 'deprecated' means in this case. Felix has not yet implemented this
>> API or a functional equivalent. The 'workaround' for Felix is to
>> substitute org.apache.aries.application.runtime.isolated for
>> org.apache.aries.application.runtime. This bundle offers a simple
>> Aries application runtime which works, although providing no isolation
>> between different applications' bundles.
>>
>> Regards,
>> Mark
>>
>> On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com> wrote:
>> > Hi
>> > I just tried to install apache aries on Karaf, and I noticed a dependency on
>> > "org.osgi.service.framework" which seems to be only implemented by equinox.
>> > I was just wondering if there is a workaround so that I can install it on
>> > Felix as well.
>> > Thanks
>> > Ivanhoe
>> > BTW. It would be really great if someone has a ready made karaf feature file
>> > for apache aries.
>> >
>>
>
Re: Dependency on deprecated classes
Posted by Ivanhoe Abrahams <iv...@gmail.com>.
Hi Guys
Thanks for all the input
I finally figured it out, its a bit embarrassing, ...instead of
org.apache.aries.proxy-0.3-SNAPSHOT.jar I was deploying an older version
(org.apache.aries.proxy-0.3-incubating-SNAPSHOT.jar) of that bundle, not
sure how that happened.
After deploying the correct version everythings ok...now
Every now and then I turn into a complete idoit. Sorry about the unnecessary
posts.
Regards
Ivanhoe
On Thu, Jan 20, 2011 at 12:34 AM, Emily Jiang <EM...@uk.ibm.com> wrote:
> Judging from the error messages, the bundles cannot be resolved because of
> the missing package of
> package=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)). I
> had a quick look at the bundle lists. The bundle
> org.apache.aries.util-0.3-SNAPSHOT and
> org.apache.aries.blueprint-0.3-SNAPSHOT import the package
> org.osgi.service.framework with the version range of [1.1.0, 2.0.0) but with
> the resolution optional though. Can you open the manifest.mf for these two
> bundles to see whether it has optional dependency on the particular package
> org.osgi.service.framework?
>
> This does explain that you can get further with equinox bundle installed as
> that bundle exports the package org.osgi.service.framework.
>
> Regards
> Emily
>
>
>
>
>
>
> From: Valentin Mahrwald <vm...@googlemail.com>
> To: user@aries.apache.org
> Date: 19/01/2011 18:53
> Subject: Re: Dependency on deprecated classes
> ------------------------------
>
>
>
> That resolver failure seems to suggest that
> org.apache.aries.proxy-0.3-incubating-SNAPSHOT (although it is not clear
> which bundle 17.0 refers to) has a dependency on org.osgi.service.framework,
> which it does not seem to happen in my current workspace build. Does that
> rime with what you can see in the console?
>
> Regards,
>
> Valentin
>
> On 19 Jan 2011, at 18:12, Ivanhoe Abrahams wrote:
>
> Hi Mark
>
> Please can you explain the workaround a bit more?
>
> I have the following bundles deployed in a clean Felix 3.0.7 deploy (along
> with some other bundles)
>
> org.apache.aries.util-0.3-SNAPSHOT
> org.apache.aries.quiesce.api-0.3-SNAPSHOT
> org.apache.aries.proxy-0.3-incubating-SNAPSHOT
> org.apache.aries.jpa.container-0.3-SNAPSHOT
> org.apache.aries.jpa.container.context-0.3-SNAPSHOT
> org.apache.aries.jpa.blueprint.aries-0.3-SNAPSHOT
> org.apache.aries.jpa.api-0.3-SNAPSHOT
> org.apache.aries.blueprint-0.3-SNAPSHOT
> org.apache.aries.application-0.3-SNAPSHOT
> org.apache.aries.application.runtime-0.3-SNAPSHOT
> org.apache.aries.application.api-0.3-SNAPSHOT
>
> However in startup immediately get following error message
>
> ERROR: Error starting
> file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application-0.3-SNAPSHOT.jar
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.aries.application [9]: Unable to resolv
> e 9.0: missing requirement [9.0] package;
> (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
> [ca
> used by: Unable to resolve 12.0: missing requirement [12.0] package;
> (&(package=org.apache.aries.proxy)(version>=0.3.0)(
> !(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement
> [17.0] package; (&(package=org.osgi.service.
> framework)(version>=1.0.0)(!(version>=2.0.0)))]])
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.aries.application [9]: Unable to resolve
> 9.0: missing requirement [9.0] package;
> (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
> [caus
> ed by: Unable to resolve 12.0: missing requirement [12.0] package;
> (&(package=org.apache.aries.proxy)(version>=0.3.0)(!(
> version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement
> [17.0] package; (&(package=*org.osgi.service.fr*<http://org.osgi.service.fr/>
> amework)(version>=1.0.0)(!(version>=2.0.0)))]]
> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
> at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
> at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:619)
> ERROR: Error starting
> file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application.runtime-0.3-SNAP
> SHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in
> bundle org.apache.aries.application.runtime [11]:
> Unable to resolve 11.0: missing requirement [11.0] package;
> (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(ve
> rsion>=2.0.0))) [caused by: Unable to resolve 12.0: missing requirement
> [12.0] package; (&(package=org.apache.aries.prox
> y)(version>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0:
> missing requirement [17.0] package; (&(packag
> e=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]])
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.aries.application.runtime [11]: Unable to
> resolve 11.0: missing requirement [11.0] package;
> (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0
> .0))) [caused by: Unable to resolve 12.0: missing requirement [12.0]
> package; (&(package=org.apache.aries.proxy)(version
> >=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing
> requirement [17.0] package; (&(package=org.osgi
> .service.framework)(version>=1.0.0)(!(version>=2.0.0)))]]
>
> if I deploy equinox osgi-3.5.0.v20090520.jar as well, the startup process
> proceeds much further until it gets other errors unrelated to aries.
>
> So as you can see I have included "org.apache.aries.application.runtime"
> bundle but to no avail.
> Do you mean that I need check out trunk and change something in one of the
> pom.xml files and then build?
>
> I would really like to try the latest version of aries on Felix.
>
> Thanks in advance
> Regards
> Ivanhoe
>
>
>
>
> On Sun, Jan 16, 2011 at 8:17 PM, Mark Nuttall <*m...@apache.org>>
> wrote:
> Hello Ivanhoe,
> The org.osgi.service.framework API is still under development within
> the OSGi Alliance. It's subject to ongoing change, which is what
> 'deprecated' means in this case. Felix has not yet implemented this
> API or a functional equivalent. The 'workaround' for Felix is to
> substitute org.apache.aries.application.runtime.isolated for
> org.apache.aries.application.runtime. This bundle offers a simple
> Aries application runtime which works, although providing no isolation
> between different applications' bundles.
>
> Regards,
> Mark
>
> On 16 January 2011 17:25, Ivanhoe Abrahams <*i...@gmail.com>>
> wrote:
> > Hi
> > I just tried to install apache aries on Karaf, and I noticed a dependency
> on
> > "org.osgi.service.framework" which seems to be only implemented by
> equinox.
> > I was just wondering if there is a workaround so that I can install it on
> > Felix as well.
> > Thanks
> > Ivanhoe
> > BTW. It would be really great if someone has a ready made karaf feature
> file
> > for apache aries.
> >
>
>
>
>
>
> ------------------------------
>
> *
> *
>
> *Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
> *
>
>
>
>
>
>
>
Re: Dependency on deprecated classes
Posted by Emily Jiang <EM...@uk.ibm.com>.
Judging from the error messages, the bundles cannot be resolved because of
the missing package of
package=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)). I
had a quick look at the bundle lists. The bundle
org.apache.aries.util-0.3-SNAPSHOT and
org.apache.aries.blueprint-0.3-SNAPSHOT import the package
org.osgi.service.framework with the version range of [1.1.0, 2.0.0) but
with the resolution optional though. Can you open the manifest.mf for
these two bundles to see whether it has optional dependency on the
particular package org.osgi.service.framework?
This does explain that you can get further with equinox bundle installed
as that bundle exports the package org.osgi.service.framework.
Regards
Emily
From: Valentin Mahrwald <vm...@googlemail.com>
To: user@aries.apache.org
Date: 19/01/2011 18:53
Subject: Re: Dependency on deprecated classes
That resolver failure seems to suggest that
org.apache.aries.proxy-0.3-incubating-SNAPSHOT (although it is not clear
which bundle 17.0 refers to) has a dependency on
org.osgi.service.framework, which it does not seem to happen in my current
workspace build. Does that rime with what you can see in the console?
Regards,
Valentin
On 19 Jan 2011, at 18:12, Ivanhoe Abrahams wrote:
Hi Mark
Please can you explain the workaround a bit more?
I have the following bundles deployed in a clean Felix 3.0.7 deploy (along
with some other bundles)
org.apache.aries.util-0.3-SNAPSHOT
org.apache.aries.quiesce.api-0.3-SNAPSHOT
org.apache.aries.proxy-0.3-incubating-SNAPSHOT
org.apache.aries.jpa.container-0.3-SNAPSHOT
org.apache.aries.jpa.container.context-0.3-SNAPSHOT
org.apache.aries.jpa.blueprint.aries-0.3-SNAPSHOT
org.apache.aries.jpa.api-0.3-SNAPSHOT
org.apache.aries.blueprint-0.3-SNAPSHOT
org.apache.aries.application-0.3-SNAPSHOT
org.apache.aries.application.runtime-0.3-SNAPSHOT
org.apache.aries.application.api-0.3-SNAPSHOT
However in startup immediately get following error message
ERROR: Error starting
file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application-0.3-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application [9]: Unable to resolv
e 9.0: missing requirement [9.0] package;
(&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
[ca
used by: Unable to resolve 12.0: missing requirement [12.0] package;
(&(package=org.apache.aries.proxy)(version>=0.3.0)(
!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing
requirement [17.0] package; (&(package=org.osgi.service.
framework)(version>=1.0.0)(!(version>=2.0.0)))]])
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application [9]: Unable to resolve
9.0: missing requirement [9.0] package;
(&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
[caus
ed by: Unable to resolve 12.0: missing requirement [12.0] package;
(&(package=org.apache.aries.proxy)(version>=0.3.0)(!(
version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement
[17.0] package; (&(package=org.osgi.service.fr
amework)(version>=1.0.0)(!(version>=2.0.0)))]]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting
file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application.runtime-0.3-SNAP
SHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in
bundle org.apache.aries.application.runtime [11]:
Unable to resolve 11.0: missing requirement [11.0] package;
(&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(ve
rsion>=2.0.0))) [caused by: Unable to resolve 12.0: missing requirement
[12.0] package; (&(package=org.apache.aries.prox
y)(version>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0:
missing requirement [17.0] package; (&(packag
e=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]])
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application.runtime [11]: Unable to
resolve 11.0: missing requirement [11.0] package;
(&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0
.0))) [caused by: Unable to resolve 12.0: missing requirement [12.0]
package; (&(package=org.apache.aries.proxy)(version
>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing
requirement [17.0] package; (&(package=org.osgi
.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]]
if I deploy equinox osgi-3.5.0.v20090520.jar as well, the startup process
proceeds much further until it gets other errors unrelated to aries.
So as you can see I have included "org.apache.aries.application.runtime"
bundle but to no avail.
Do you mean that I need check out trunk and change something in one of
the pom.xml files and then build?
I would really like to try the latest version of aries on Felix.
Thanks in advance
Regards
Ivanhoe
On Sun, Jan 16, 2011 at 8:17 PM, Mark Nuttall <mn...@apache.org> wrote:
Hello Ivanhoe,
The org.osgi.service.framework API is still under development within
the OSGi Alliance. It's subject to ongoing change, which is what
'deprecated' means in this case. Felix has not yet implemented this
API or a functional equivalent. The 'workaround' for Felix is to
substitute org.apache.aries.application.runtime.isolated for
org.apache.aries.application.runtime. This bundle offers a simple
Aries application runtime which works, although providing no isolation
between different applications' bundles.
Regards,
Mark
On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com>
wrote:
> Hi
> I just tried to install apache aries on Karaf, and I noticed a
dependency on
> "org.osgi.service.framework" which seems to be only implemented by
equinox.
> I was just wondering if there is a workaround so that I can install it
on
> Felix as well.
> Thanks
> Ivanhoe
> BTW. It would be really great if someone has a ready made karaf feature
file
> for apache aries.
>
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: Dependency on deprecated classes
Posted by Valentin Mahrwald <vm...@googlemail.com>.
That resolver failure seems to suggest that org.apache.aries.proxy-0.3-incubating-SNAPSHOT (although it is not clear which bundle 17.0 refers to) has a dependency on org.osgi.service.framework, which it does not seem to happen in my current workspace build. Does that rime with what you can see in the console?
Regards,
Valentin
On 19 Jan 2011, at 18:12, Ivanhoe Abrahams wrote:
> Hi Mark
>
> Please can you explain the workaround a bit more?
>
> I have the following bundles deployed in a clean Felix 3.0.7 deploy (along with some other bundles)
>
> org.apache.aries.util-0.3-SNAPSHOT
> org.apache.aries.quiesce.api-0.3-SNAPSHOT
> org.apache.aries.proxy-0.3-incubating-SNAPSHOT
> org.apache.aries.jpa.container-0.3-SNAPSHOT
> org.apache.aries.jpa.container.context-0.3-SNAPSHOT
> org.apache.aries.jpa.blueprint.aries-0.3-SNAPSHOT
> org.apache.aries.jpa.api-0.3-SNAPSHOT
> org.apache.aries.blueprint-0.3-SNAPSHOT
> org.apache.aries.application-0.3-SNAPSHOT
> org.apache.aries.application.runtime-0.3-SNAPSHOT
> org.apache.aries.application.api-0.3-SNAPSHOT
>
> However in startup immediately get following error message
>
> ERROR: Error starting file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application-0.3-SNAPSHOT.jar
> (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application [9]: Unable to resolv
> e 9.0: missing requirement [9.0] package; (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0))) [ca
> used by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version>=0.3.0)(
> !(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi.service.
> framework)(version>=1.0.0)(!(version>=2.0.0)))]])
> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application [9]: Unable to resolve
> 9.0: missing requirement [9.0] package; (&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0))) [caus
> ed by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version>=0.3.0)(!(
> version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi.service.fr
> amework)(version>=1.0.0)(!(version>=2.0.0)))]]
> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:619)
> ERROR: Error starting file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application.runtime-0.3-SNAP
> SHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application.runtime [11]:
> Unable to resolve 11.0: missing requirement [11.0] package; (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(ve
> rsion>=2.0.0))) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.prox
> y)(version>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(packag
> e=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]])
> org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.aries.application.runtime [11]: Unable to
> resolve 11.0: missing requirement [11.0] package; (&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0
> .0))) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=org.apache.aries.proxy)(version
> >=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.osgi
> .service.framework)(version>=1.0.0)(!(version>=2.0.0)))]]
>
> if I deploy equinox osgi-3.5.0.v20090520.jar as well, the startup process proceeds much further until it gets other errors unrelated to aries.
>
> So as you can see I have included "org.apache.aries.application.runtime" bundle but to no avail.
> Do you mean that I need check out trunk and change something in one of the pom.xml files and then build?
>
> I would really like to try the latest version of aries on Felix.
>
> Thanks in advance
> Regards
> Ivanhoe
>
>
>
>
> On Sun, Jan 16, 2011 at 8:17 PM, Mark Nuttall <mn...@apache.org> wrote:
> Hello Ivanhoe,
> The org.osgi.service.framework API is still under development within
> the OSGi Alliance. It's subject to ongoing change, which is what
> 'deprecated' means in this case. Felix has not yet implemented this
> API or a functional equivalent. The 'workaround' for Felix is to
> substitute org.apache.aries.application.runtime.isolated for
> org.apache.aries.application.runtime. This bundle offers a simple
> Aries application runtime which works, although providing no isolation
> between different applications' bundles.
>
> Regards,
> Mark
>
> On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com> wrote:
> > Hi
> > I just tried to install apache aries on Karaf, and I noticed a dependency on
> > "org.osgi.service.framework" which seems to be only implemented by equinox.
> > I was just wondering if there is a workaround so that I can install it on
> > Felix as well.
> > Thanks
> > Ivanhoe
> > BTW. It would be really great if someone has a ready made karaf feature file
> > for apache aries.
> >
>
Re: Dependency on deprecated classes
Posted by Ivanhoe Abrahams <iv...@gmail.com>.
Hi Mark
Please can you explain the workaround a bit more?
I have the following bundles deployed in a clean Felix 3.0.7 deploy (along
with some other bundles)
org.apache.aries.util-0.3-SNAPSHOT
org.apache.aries.quiesce.api-0.3-SNAPSHOT
org.apache.aries.proxy-0.3-incubating-SNAPSHOT
org.apache.aries.jpa.container-0.3-SNAPSHOT
org.apache.aries.jpa.container.context-0.3-SNAPSHOT
org.apache.aries.jpa.blueprint.aries-0.3-SNAPSHOT
org.apache.aries.jpa.api-0.3-SNAPSHOT
org.apache.aries.blueprint-0.3-SNAPSHOT
org.apache.aries.application-0.3-SNAPSHOT
org.apache.aries.application.runtime-0.3-SNAPSHOT
org.apache.aries.application.api-0.3-SNAPSHOT
However in startup immediately get following error message
ERROR: Error starting
file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application-0.3-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application [9]: Unable to resolv
e 9.0: missing requirement [9.0] package;
(&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
[ca
used by: Unable to resolve 12.0: missing requirement [12.0] package;
(&(package=org.apache.aries.proxy)(version>=0.3.0)(
!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement
[17.0] package; (&(package=org.osgi.service.
framework)(version>=1.0.0)(!(version>=2.0.0)))]])
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application [9]: Unable to resolve
9.0: missing requirement [9.0] package;
(&(package=org.apache.aries.blueprint)(version>=0.3.0)(!(version>=1.0.0)))
[caus
ed by: Unable to resolve 12.0: missing requirement [12.0] package;
(&(package=org.apache.aries.proxy)(version>=0.3.0)(!(
version>=1.0.0))) [caused by: Unable to resolve 17.0: missing requirement
[17.0] package; (&(package=org.osgi.service.fr
amework)(version>=1.0.0)(!(version>=2.0.0)))]]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting
file:/C:/work/Felix-307/felix-framework-3.0.7/bundle/org.apache.aries.application.runtime-0.3-SNAP
SHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in
bundle org.apache.aries.application.runtime [11]:
Unable to resolve 11.0: missing requirement [11.0] package;
(&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(ve
rsion>=2.0.0))) [caused by: Unable to resolve 12.0: missing requirement
[12.0] package; (&(package=org.apache.aries.prox
y)(version>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0:
missing requirement [17.0] package; (&(packag
e=org.osgi.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]])
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.aries.application.runtime [11]: Unable to
resolve 11.0: missing requirement [11.0] package;
(&(package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0
.0))) [caused by: Unable to resolve 12.0: missing requirement [12.0]
package; (&(package=org.apache.aries.proxy)(version
>=0.3.0)(!(version>=1.0.0))) [caused by: Unable to resolve 17.0: missing
requirement [17.0] package; (&(package=org.osgi
.service.framework)(version>=1.0.0)(!(version>=2.0.0)))]]
if I deploy equinox osgi-3.5.0.v20090520.jar as well, the startup process
proceeds much further until it gets other errors unrelated to aries.
So as you can see I have included "org.apache.aries.application.runtime"
bundle but to no avail.
Do you mean that I need check out trunk and change something in one of the
pom.xml files and then build?
I would really like to try the latest version of aries on Felix.
Thanks in advance
Regards
Ivanhoe
On Sun, Jan 16, 2011 at 8:17 PM, Mark Nuttall <mn...@apache.org> wrote:
> Hello Ivanhoe,
> The org.osgi.service.framework API is still under development within
> the OSGi Alliance. It's subject to ongoing change, which is what
> 'deprecated' means in this case. Felix has not yet implemented this
> API or a functional equivalent. The 'workaround' for Felix is to
> substitute org.apache.aries.application.runtime.isolated for
> org.apache.aries.application.runtime. This bundle offers a simple
> Aries application runtime which works, although providing no isolation
> between different applications' bundles.
>
> Regards,
> Mark
>
> On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com>
> wrote:
> > Hi
> > I just tried to install apache aries on Karaf, and I noticed a dependency
> on
> > "org.osgi.service.framework" which seems to be only implemented by
> equinox.
> > I was just wondering if there is a workaround so that I can install it on
> > Felix as well.
> > Thanks
> > Ivanhoe
> > BTW. It would be really great if someone has a ready made karaf feature
> file
> > for apache aries.
> >
>
Re: Dependency on deprecated classes
Posted by Alasdair Nottingham <no...@apache.org>.
Hi,
I believe equinox 3.7 M4 does implement resolver hooks now. Not sure if it, or the APIs are in maven central though.
Alasdair Nottingham
On 16 Jan 2011, at 18:52, Guillaume Nodet <gn...@gmail.com> wrote:
> Also, the API in question won't be a released by the OSGi Alliance afaik, as something else (resolver hooks) has been provided instead, but I'm not sure if those are implemented by equinox yet (felix does not yet afaik).
>
> On Sun, Jan 16, 2011 at 19:17, Mark Nuttall <mn...@apache.org> wrote:
> Hello Ivanhoe,
> The org.osgi.service.framework API is still under development within
> the OSGi Alliance. It's subject to ongoing change, which is what
> 'deprecated' means in this case. Felix has not yet implemented this
> API or a functional equivalent. The 'workaround' for Felix is to
> substitute org.apache.aries.application.runtime.isolated for
> org.apache.aries.application.runtime. This bundle offers a simple
> Aries application runtime which works, although providing no isolation
> between different applications' bundles.
>
> Regards,
> Mark
>
> On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com> wrote:
> > Hi
> > I just tried to install apache aries on Karaf, and I noticed a dependency on
> > "org.osgi.service.framework" which seems to be only implemented by equinox.
> > I was just wondering if there is a workaround so that I can install it on
> > Felix as well.
> > Thanks
> > Ivanhoe
> > BTW. It would be really great if someone has a ready made karaf feature file
> > for apache aries.
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
>
Re: Dependency on deprecated classes
Posted by Guillaume Nodet <gn...@gmail.com>.
Also, the API in question won't be a released by the OSGi Alliance afaik, as
something else (resolver hooks) has been provided instead, but I'm not sure
if those are implemented by equinox yet (felix does not yet afaik).
On Sun, Jan 16, 2011 at 19:17, Mark Nuttall <mn...@apache.org> wrote:
> Hello Ivanhoe,
> The org.osgi.service.framework API is still under development within
> the OSGi Alliance. It's subject to ongoing change, which is what
> 'deprecated' means in this case. Felix has not yet implemented this
> API or a functional equivalent. The 'workaround' for Felix is to
> substitute org.apache.aries.application.runtime.isolated for
> org.apache.aries.application.runtime. This bundle offers a simple
> Aries application runtime which works, although providing no isolation
> between different applications' bundles.
>
> Regards,
> Mark
>
> On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com>
> wrote:
> > Hi
> > I just tried to install apache aries on Karaf, and I noticed a dependency
> on
> > "org.osgi.service.framework" which seems to be only implemented by
> equinox.
> > I was just wondering if there is a workaround so that I can install it on
> > Felix as well.
> > Thanks
> > Ivanhoe
> > BTW. It would be really great if someone has a ready made karaf feature
> file
> > for apache aries.
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: Dependency on deprecated classes
Posted by Mark Nuttall <mn...@apache.org>.
Hello Ivanhoe,
The org.osgi.service.framework API is still under development within
the OSGi Alliance. It's subject to ongoing change, which is what
'deprecated' means in this case. Felix has not yet implemented this
API or a functional equivalent. The 'workaround' for Felix is to
substitute org.apache.aries.application.runtime.isolated for
org.apache.aries.application.runtime. This bundle offers a simple
Aries application runtime which works, although providing no isolation
between different applications' bundles.
Regards,
Mark
On 16 January 2011 17:25, Ivanhoe Abrahams <iv...@gmail.com> wrote:
> Hi
> I just tried to install apache aries on Karaf, and I noticed a dependency on
> "org.osgi.service.framework" which seems to be only implemented by equinox.
> I was just wondering if there is a workaround so that I can install it on
> Felix as well.
> Thanks
> Ivanhoe
> BTW. It would be really great if someone has a ready made karaf feature file
> for apache aries.
>