You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Lorenz, Stefan" <St...@htw-aalen.de> on 2011/06/15 13:33:07 UTC

Missing Constraint: org.springframework.osgi.context

Hi,

I just tried to upgrade from Camel 2.5 to 2.7.2.
I use Camel in an Equinox OSGI environment.

But now I get the following error:

!ENTRY org.apache.camel.camel-spring 4 0 2011-06-15 13:14:53.341
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.apache.camel.camel-spring_2.7.2 [23]" could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.osgi.context; version="[1.2.0,2.0.0)"

I'm not sure what I'm doing wrong. But it seems that the libraries from springframework are not including the missing package...
Do I have to get them manually?

Thx & regards
Stefan

Re: Missing Constraint: org.springframework.osgi.context

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Stefan,

did you define org.springframework.osgi.context in the Import-Package 
statement of your bundle ?
I assume that the Spring bundles are available in your OSGi container.

Regards
JB

On 06/15/2011 01:33 PM, Lorenz, Stefan wrote:
> Hi,
>
> I just tried to upgrade from Camel 2.5 to 2.7.2.
> I use Camel in an Equinox OSGI environment.
>
> But now I get the following error:
>
> !ENTRY org.apache.camel.camel-spring 4 0 2011-06-15 13:14:53.341
> !MESSAGE
> !STACK 0
> org.osgi.framework.BundleException: The bundle "org.apache.camel.camel-spring_2.7.2 [23]" could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.osgi.context; version="[1.2.0,2.0.0)"
>
> I'm not sure what I'm doing wrong. But it seems that the libraries from springframework are not including the missing package...
> Do I have to get them manually?
>
> Thx&  regards
> Stefan
>

AW: Missing Constraint: org.springframework.osgi.context

Posted by "Lorenz, Stefan" <St...@htw-aalen.de>.
Hi,

Thanks a lot,
I knew that I had forgot something :-)

Now it's working again...

-----Ursprüngliche Nachricht-----
Von: Gert Vanthienen [mailto:gert.vanthienen@gmail.com] 
Gesendet: Mittwoch, 15. Juni 2011 14:02
An: users@camel.apache.org
Betreff: Re: Missing Constraint: org.springframework.osgi.context

Stefan,

That package is part of spring-dm - those are a separate set of
bundles (spring-osgi-core, spring-osgi-io, ...) that need to be
installed next to the default Spring libraries that you probably have
(things like spring-bean, ...).

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Wed, Jun 15, 2011 at 1:33 PM, Lorenz, Stefan
<St...@htw-aalen.de> wrote:
> Hi,
>
> I just tried to upgrade from Camel 2.5 to 2.7.2.
> I use Camel in an Equinox OSGI environment.
>
> But now I get the following error:
>
> !ENTRY org.apache.camel.camel-spring 4 0 2011-06-15 13:14:53.341
> !MESSAGE
> !STACK 0
> org.osgi.framework.BundleException: The bundle "org.apache.camel.camel-spring_2.7.2 [23]" could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.osgi.context; version="[1.2.0,2.0.0)"
>
> I'm not sure what I'm doing wrong. But it seems that the libraries from springframework are not including the missing package...
> Do I have to get them manually?
>
> Thx & regards
> Stefan
>

Re: Missing Constraint: org.springframework.osgi.context

Posted by Gert Vanthienen <ge...@gmail.com>.
Stefan,

That package is part of spring-dm - those are a separate set of
bundles (spring-osgi-core, spring-osgi-io, ...) that need to be
installed next to the default Spring libraries that you probably have
(things like spring-bean, ...).

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Wed, Jun 15, 2011 at 1:33 PM, Lorenz, Stefan
<St...@htw-aalen.de> wrote:
> Hi,
>
> I just tried to upgrade from Camel 2.5 to 2.7.2.
> I use Camel in an Equinox OSGI environment.
>
> But now I get the following error:
>
> !ENTRY org.apache.camel.camel-spring 4 0 2011-06-15 13:14:53.341
> !MESSAGE
> !STACK 0
> org.osgi.framework.BundleException: The bundle "org.apache.camel.camel-spring_2.7.2 [23]" could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.osgi.context; version="[1.2.0,2.0.0)"
>
> I'm not sure what I'm doing wrong. But it seems that the libraries from springframework are not including the missing package...
> Do I have to get them manually?
>
> Thx & regards
> Stefan
>