You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by viswa46 <pv...@gmail.com> on 2013/10/29 04:35:52 UTC

Error While uploading the bundle in felix console

Hi,
 
I'm new apache felix osgi just i'm trying to build a sample bundle and
upload to felix console the below error message is being displayed also
please find the pom.xml as well thanks in advance. pom.xml
<http://apache-felix.18485.x6.nabble.com/file/n5005798/pom.xml>  

29.10.2013 08:59:31.459 *ERROR* [0:0:0:0:0:0:0:1 [1383017371453] POST
/system/console/bundles/233 HTTP/1.1] cqse-httpservice %bundles.pluginTitle:
Cannot start (org.osgi.framework.BundleException: Constraint violation for
package 'org.osgi.framework' when resolving module 233.0 between existing
import 232.0.org.osgi.framework BLAMED ON [[233.0] package;
(&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
(&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
[41.0] package;
(&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Constraint violation for package
'org.osgi.framework' when resolving module 233.0 between existing import
232.0.org.osgi.framework BLAMED ON [[233.0] package;
(&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
(&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
[41.0] package;
(&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))]




--
View this message in context: http://apache-felix.18485.x6.nabble.com/Error-While-uploading-the-bundle-in-felix-console-tp5005798.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

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


Re: Error While uploading the bundle in felix console

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I'd recommend using a newer version of the framework and you might get a 
better error message.

-> richard

On 10/28/13, 23:35 , viswa46 wrote:
> Hi,
>   
> I'm new apache felix osgi just i'm trying to build a sample bundle and
> upload to felix console the below error message is being displayed also
> please find the pom.xml as well thanks in advance. pom.xml
> <http://apache-felix.18485.x6.nabble.com/file/n5005798/pom.xml>
>
> 29.10.2013 08:59:31.459 *ERROR* [0:0:0:0:0:0:0:1 [1383017371453] POST
> /system/console/bundles/233 HTTP/1.1] cqse-httpservice %bundles.pluginTitle:
> Cannot start (org.osgi.framework.BundleException: Constraint violation for
> package 'org.osgi.framework' when resolving module 233.0 between existing
> import 232.0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
> constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
> [41.0] package;
> (&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))])
> org.osgi.framework.BundleException: Constraint violation for package
> 'org.osgi.framework' when resolving module 233.0 between existing import
> 232.0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
> constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
> [41.0] package;
> (&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))]
>
>
>
>
> --
> View this message in context: http://apache-felix.18485.x6.nabble.com/Error-While-uploading-the-bundle-in-felix-console-tp5005798.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: Error While uploading the bundle in felix console

Posted by Felix Meschberger <fm...@adobe.com>.
Hi

Looking at you POM I see many dependencies with scope compile. Could you verify that these dependencies have not been folded into the bundle ? I.e. your bundle must only contain your code not the dependency classes.

Best practice for OSGi bundle POMs is to always mark dependencies explicitly as scope=provided.

Regards
Felix

—
Felix Meschberger  |  Principal Scientist  |  Adobe



Am 29.10.2013 um 04:35 schrieb viswa46 <pv...@gmail.com>:

> Hi,
> 
> I'm new apache felix osgi just i'm trying to build a sample bundle and
> upload to felix console the below error message is being displayed also
> please find the pom.xml as well thanks in advance. pom.xml
> <http://apache-felix.18485.x6.nabble.com/file/n5005798/pom.xml>  
> 
> 29.10.2013 08:59:31.459 *ERROR* [0:0:0:0:0:0:0:1 [1383017371453] POST
> /system/console/bundles/233 HTTP/1.1] cqse-httpservice %bundles.pluginTitle:
> Cannot start (org.osgi.framework.BundleException: Constraint violation for
> package 'org.osgi.framework' when resolving module 233.0 between existing
> import 232.0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
> constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
> [41.0] package;
> (&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))])
> org.osgi.framework.BundleException: Constraint violation for package
> 'org.osgi.framework' when resolving module 233.0 between existing import
> 232.0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))] and uses
> constraint 0.org.osgi.framework BLAMED ON [[233.0] package;
> (&(package=org.osgi.service.component)(version>=1.1.0)(!(version>=2.0.0))),
> [41.0] package;
> (&(package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0)))]
> 
> 
> 
> 
> --
> View this message in context: http://apache-felix.18485.x6.nabble.com/Error-While-uploading-the-bundle-in-felix-console-tp5005798.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> 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