Are you trying to start felix on JavaME? Your bundle has dependency on javaME system package "javax.microedition.io". This package must be loaded via felix system bundle like other core java packages. But for that, you'll need to start felix on Java ME instance and do the following:

${jme-1.5}

Try to add following lines to your config.properties

org.osgi.framework.system.packages=<some_other_package_definitions>, ${jme-1.5}

jme-1.5 = javax.microedition.io

But I'm afraid it won't start...

The other solution is to start felix in standart JDK, but provide JME packages via classpath
java -jar felix.jar -classpath "javame_libs"

or build a bundle with JME libs and deploy it to felix.

Do you really need "javax.microedition.io" dependency in your bundle? What application are trying to deploy in Felix? :)

Nguyen Tien Luong wrote:
   Hi Vadeg,

I have     <Import-Package>*</Import-Package>   in my POM, and when I removed 
it, rebuild the JAR but the same error appears.


For systempackages, Do you mean the configorg.osgi.framework.system.packages.extra in config.properties of felix. I tried to change it to
org.osgi.framework.system.packages.extra=javax.microedition.*

but it didn't work either.

Maybe you have another suggestions ?

Thanks

 =========================================================================
NGUYEN Tien Luong | M2PGI - UFRIMAG 13 Rue Blanche MONIER | Tel : 06.45.42.46.33
38000 GRENOBLE                          |              http://tienluong.info





________________________________
From: Vadeg <niiba...@gmail.com>
To: users@felix.apache.org
Sent: Fri, 12 March, 2010 11:31:52
Subject: Re: Unresolved constraint in bundle (package=javax.microedition.io)

Take a look at the manifest in line "Import-Package".

Your bundle depends of bundle with package "javax.microedition.io" in it;

It seems that you must describe "systempackages" property for using libs from Java ME


Nguyen Tien Luong wrote:
   Hi everybody,

I'm new in OSGi and when I try to create my first bundle, I had this error



org.osgi.framework.BundleException: Unresolved constraint in bundle 
oregonWMR200 [16]: package; (package=javax.microedition.io)


I really don't know where I have this constraint.

How can I resolve it ?

Thanks

=========================================================================
NGUYEN Tien Luong | M2PGI - UFRIMAG 13 Rue Blanche MONIER | Tel : 06.45.42.46.33
38000 GRENOBLE                          |              http://tienluong.info




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



Reply via email to