You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Stefan Wachter <st...@1und1.de> on 2012/06/08 18:14:01 UTC

unresolved dependency on package org.osgi.framework version=1.5

Hi all,

I use the Felix servlet bridge. Now I wanted to upgrade the CXF dOSGI 
bundles to version 1.3.1. These bundles require package
org.osgi.framework at least at version=1.5. Yet this package is exported 
by the system bundle

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>4.0.2</version>
</dependency>

in the version 1.4.

Does anyone know how to configure the servlet bridge such that version 
1.5 of the mentioned package is provided by Felix?

Best regards and many thanks

Stefan


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


Re: unresolved dependency on package org.osgi.framework version=1.5

Posted by Stefan Wachter <st...@1und1.de>.
Hi Richard,

I solved the problem setting the

org.osgi.framework.system.packages.extra

property and keeping the

org.osgi.framework.system.packages


unchanged. I created an improvement ticket for the http servlet bridge 
sample (https://issues.apache.org/jira/browse/FELIX-3546).

Thanks again!

Stefan


12 15:32, schrieb Richard S. Hall:
> On 6/8/12 14:52 , Stefan Wachter wrote:
>> Hi Richard,
>>
>> many thanks - you hinted me into the right direction. The problem is
>> that the Felix servlet bridge comes with a custom framework.properties
>> file (cf.
>> http://svn.apache.org/repos/asf/felix/trunk/http/samples/bridge/src/main/webapp/WEB-INF/framework.properties)
>> because it also adds the javax.servlet, and javax.servlet.http
>> package. This file has not been updated for a while and still contains
>> the line:
>>
>> org.osgi.framework; version=1.4.0, \
>>
>> I will see how the default.properties can be tweaked to include the
>> servlet API.
> If the servlet bridge only wants to append a few packages to the system
> bundle exports, it should use org.osgi.framework.system.packages.extra
> to just add those packages. This won't change the default. However, if
> they need to remove some packages, then they don't have much choice. Not
> sure which it is, but you could open a bug against it.
>
> ->  richard
>
>> Thanks again!
>>
>> Stefan
>>
>> Am 08.06.2012 19:46, schrieb Richard S. Hall:
>>> I see the following in the frameworks default.properties file:
>>>
>>> # Default packages exported by system bundle.
>>>        org.osgi.framework.system.packages=org.osgi.framework;
>>> version=1.6.0, \
>>>
>>> So if system bundle is not exporting that version, then I'd have to
>>> guess that something else in your setup is messing with the default
>>> configuration of the framework.
>>>
>>> ->   richard
>>>
>>> On 6/8/12 12:14 , Stefan Wachter wrote:
>>>> Hi all,
>>>>
>>>> I use the Felix servlet bridge. Now I wanted to upgrade the CXF dOSGI
>>>> bundles to version 1.3.1. These bundles require package
>>>> org.osgi.framework at least at version=1.5. Yet this package is
>>>> exported by the system bundle
>>>>
>>>> <dependency>
>>>> <groupId>org.apache.felix</groupId>
>>>> <artifactId>org.apache.felix.framework</artifactId>
>>>> <version>4.0.2</version>
>>>> </dependency>
>>>>
>>>> in the version 1.4.
>>>>
>>>> Does anyone know how to configure the servlet bridge such that version
>>>> 1.5 of the mentioned package is provided by Felix?
>>>>
>>>> Best regards and many thanks
>>>>
>>>> Stefan
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
> ---------------------------------------------------------------------
> 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: unresolved dependency on package org.osgi.framework version=1.5

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 6/8/12 14:52 , Stefan Wachter wrote:
> Hi Richard,
>
> many thanks - you hinted me into the right direction. The problem is 
> that the Felix servlet bridge comes with a custom framework.properties 
> file (cf. 
> http://svn.apache.org/repos/asf/felix/trunk/http/samples/bridge/src/main/webapp/WEB-INF/framework.properties) 
> because it also adds the javax.servlet, and javax.servlet.http 
> package. This file has not been updated for a while and still contains 
> the line:
>
> org.osgi.framework; version=1.4.0, \
>
> I will see how the default.properties can be tweaked to include the 
> servlet API.

If the servlet bridge only wants to append a few packages to the system 
bundle exports, it should use org.osgi.framework.system.packages.extra 
to just add those packages. This won't change the default. However, if 
they need to remove some packages, then they don't have much choice. Not 
sure which it is, but you could open a bug against it.

-> richard

>
> Thanks again!
>
> Stefan
>
> Am 08.06.2012 19:46, schrieb Richard S. Hall:
>> I see the following in the frameworks default.properties file:
>>
>> # Default packages exported by system bundle.
>>       org.osgi.framework.system.packages=org.osgi.framework; 
>> version=1.6.0, \
>>
>> So if system bundle is not exporting that version, then I'd have to
>> guess that something else in your setup is messing with the default
>> configuration of the framework.
>>
>> ->  richard
>>
>> On 6/8/12 12:14 , Stefan Wachter wrote:
>>> Hi all,
>>>
>>> I use the Felix servlet bridge. Now I wanted to upgrade the CXF dOSGI
>>> bundles to version 1.3.1. These bundles require package
>>> org.osgi.framework at least at version=1.5. Yet this package is
>>> exported by the system bundle
>>>
>>> <dependency>
>>> <groupId>org.apache.felix</groupId>
>>> <artifactId>org.apache.felix.framework</artifactId>
>>> <version>4.0.2</version>
>>> </dependency>
>>>
>>> in the version 1.4.
>>>
>>> Does anyone know how to configure the servlet bridge such that version
>>> 1.5 of the mentioned package is provided by Felix?
>>>
>>> Best regards and many thanks
>>>
>>> Stefan
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>

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


Re: unresolved dependency on package org.osgi.framework version=1.5

Posted by Stefan Wachter <st...@1und1.de>.
Hi Richard,

many thanks - you hinted me into the right direction. The problem is 
that the Felix servlet bridge comes with a custom framework.properties 
file (cf. 
http://svn.apache.org/repos/asf/felix/trunk/http/samples/bridge/src/main/webapp/WEB-INF/framework.properties) 
because it also adds the javax.servlet, and javax.servlet.http package. 
This file has not been updated for a while and still contains the line:

org.osgi.framework; version=1.4.0, \

I will see how the default.properties can be tweaked to include the 
servlet API.

Thanks again!

Stefan

Am 08.06.2012 19:46, schrieb Richard S. Hall:
> I see the following in the frameworks default.properties file:
>
> # Default packages exported by system bundle.
>       org.osgi.framework.system.packages=org.osgi.framework; version=1.6.0, \
>
> So if system bundle is not exporting that version, then I'd have to
> guess that something else in your setup is messing with the default
> configuration of the framework.
>
> ->  richard
>
> On 6/8/12 12:14 , Stefan Wachter wrote:
>> Hi all,
>>
>> I use the Felix servlet bridge. Now I wanted to upgrade the CXF dOSGI
>> bundles to version 1.3.1. These bundles require package
>> org.osgi.framework at least at version=1.5. Yet this package is
>> exported by the system bundle
>>
>> <dependency>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>org.apache.felix.framework</artifactId>
>> <version>4.0.2</version>
>> </dependency>
>>
>> in the version 1.4.
>>
>> Does anyone know how to configure the servlet bridge such that version
>> 1.5 of the mentioned package is provided by Felix?
>>
>> Best regards and many thanks
>>
>> Stefan
>>
>>
>> ---------------------------------------------------------------------
>> 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: unresolved dependency on package org.osgi.framework version=1.5

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I see the following in the frameworks default.properties file:

# Default packages exported by system bundle.
     org.osgi.framework.system.packages=org.osgi.framework; version=1.6.0, \

So if system bundle is not exporting that version, then I'd have to 
guess that something else in your setup is messing with the default 
configuration of the framework.

-> richard

On 6/8/12 12:14 , Stefan Wachter wrote:
> Hi all,
>
> I use the Felix servlet bridge. Now I wanted to upgrade the CXF dOSGI 
> bundles to version 1.3.1. These bundles require package
> org.osgi.framework at least at version=1.5. Yet this package is 
> exported by the system bundle
>
> <dependency>
> <groupId>org.apache.felix</groupId>
> <artifactId>org.apache.felix.framework</artifactId>
> <version>4.0.2</version>
> </dependency>
>
> in the version 1.4.
>
> Does anyone know how to configure the servlet bridge such that version 
> 1.5 of the mentioned package is provided by Felix?
>
> Best regards and many thanks
>
> Stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>