Dear Miguel, the issue is related to missing dependencies on your OSGi environment. In particular, it is related to the zigbee.basedriver that looks for the package org.osgi.service.device, but it is not provided by any bundle that are installed on your OSGi environment. In fact, you are missing org.osgi:osgi_R4_compendium bundle. You can add the following line to your pax.args file
mvn:org.osgi/osgi_R4_compendium/1.0.0 even if it is strange because if you ware following the steps on the wiki they are working as far as I know Ciao, Stefano On Tue, Sep 16, 2014 at 6:19 PM, Miguel Nunes <[email protected]> wrote: > > Hello all, > > I've created a module for ZB4O to create a new ZIC. Everything compiles > well and at runtime I get an OSGi error which I am not able to track. > Could someone help me? At the end of the e-mail I include some > information I consider relevant. If you need more please let me know. > > Thanks in advance. > Best Regards. > > -- > *Miguel Nunes* > > > *Module information:* > > groupid: org.aaloa.zb4osgi > artifactid: org.aaloa.zb4osgi.zigbee.ETRX357.driver > > (..) > > pom snippet: > > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <extensions>true</extensions> > <configuration> > <instructions> > <Bundle-Author><![CDATA[ > Stefano "Kismet" Lenzi <[email protected]> > <[email protected]> > ]]></Bundle-Author> > <Bundle-Name>${project.name}</Bundle-Name> > > <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> > > <Bundle-Activator>it.cnr.isti.zigbee.dongle.ETRX357.Activator</Bundle-Activator> > <Private-Package> > it.cnr.isti.zigbee.dongle.ETRX357.* > </Private-Package> > <Import-Package> > org.osgi.*, > gnu.io.*, > com.itaca.ztool.*, > it.cnr.isti.zigbee.dongle.api.*, > it.cnr.isti.zigbee.dongle.api*, > it.cnr.isti.cc2480.*, > it.cnr.isti.primitvetypes.util, > it.cnr.isti.osgi.util, > org.slf4j.*; provider=paxlogging > </Import-Package> > <Export-Package> > </Export-Package> > </instructions> > </configuration> > </plugin> > > (...) > > Internal packages: > it.cnr.isti.zigbee.dongle.ETRX357 > it.cnr.isti.zigbee.dongle.ETRX357.impl > > Log: > > (...) > > [Configuration Updater] DEBUG org.apache.felix.configadmin - Running task > Update: pid=org.ops4j.pax.logging > [FelixDispatchQueue] DEBUG org.ops4j.pax.configmanager - BundleEvent > STARTED > [FelixDispatchQueue] DEBUG org.apache.felix.fileinstall - BundleEvent > RESOLVED > [FelixStartLevel] DEBUG org.apache.felix.fileinstall - ServiceEvent > REGISTERED > > > > > > > > > > > * ERROR: Error starting > file:bundles/org.aaloa.zb4osgi.zigbee.basedriver_0.8.0.SNAPSHOT.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.aaloa.zb4osgi.zigbee.basedriver [17]: package; (&(package > =org.osgi.service.device)(version>=1.1.0)(!(version>=2.0.0)))) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.aaloa.zb4osgi.zigbee.basedriver [17]: package; > (&(package=org.osgi.service.device)(version>=1.1.0)(!(version>=2.0.0))) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Unknown Source) *2014-09-16 16:04:57,141 > - INFO - [FelixStartLevel] > it.cnr.isti.zigbee.hc.driver.core.HCDeviceFactoryBase - Registering a > HADeviceFactory ( a refinement driver ) whose refines service with > deviceId=-1 and clusters=[21, > 1556, 9, 11, 10, 3, 1, 0, 1536] > 2014-09-16 16:04:57,182 - INFO - [FelixStartLevel] > it.cnr.isti.zigbee.eh.driver.core.EHDeviceFactoryBase - Registering a > EHDeviceFactory ( a refinement driver ) whose refines service with > deviceId=-1 and clusters=[0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1026, 10, 6, 5, 4, 3, 2819, 2818, 2817, 0, > 2816, 27, 1795, 26, 1794, 1793, 1792, 22] > > (...) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > * Felix: -> ps START LEVEL 6 ID State Level Name [ 0] > [Active ] [ 0] System Bundle (2.0.2) [ 1] [Active ] [ 5] > Zigbee Tester (0.5.0.SNAPSHOT) [ 2] [Active ] [ 5] OSGi R4 Core > Bundle (4) [ 3] [Active ] [ 5] ZigBee Home Automation Profile > Driver (0.8.0.SNAPSHOT) [ 4] [Active ] [ 5] ZigBee Common Cluster > Library (0.9.0.SNAPSHOT) [ 5] [Active ] [ 5] ZigBee Base Driver > API for OSGi (0.7.0.SNAPSHOT) [ 6] [Active ] [ 5] CC2480 Data Link > protocol library (0.9.0.SNAPSHOT) [ 7] [Active ] [ 5] OPS4J Pax > Logging - API (1.4) [ 8] [Active ] [ 5] OPS4J Pax Logging - > Service (1.4) [ 9] [Active ] [ 5] OSGi and Primitive Types Utility > (0.6.0.SNAPSHOT) [ 10] [Active ] [ 5] Apache Felix Configuration > Admin Service (1.2.4) [ 11] [Active ] [ 5] OPS4J Pax ConfMan - > Properties Loader (0.2.2) [ 12] [Active ] [ 5] Apache Felix File > Install (3.2.6) [ 13] [Active ] [ 5] rxtx Bundle Wrapper > (2.1.7.SNAPSHOT) [ 14] [Active ] [ 5] net.sf.trove4j Bundle Wrapper > (2.0.4.1) [ 15] [Active ] [ 5] ZigBee Interface Controller API > (0.8.0.SNAPSHOT) [ 16] [Active ] [ 5] ZIC for Telegesis ETRX357 > dongle (0.1.0.SNAPSHOT) [ 17] [Installed ] [ 5] ZigBee Base Driver > (0.8.0.SNAPSHOT) [ 18] [Active ] [ 5] ZigBee Health Care Profile > Driver (0.1.0.SNAPSHOT) [ 19] [Active ] [ 5] ZigBee Energy@Home > Profile Driver (0.1.0.SNAPSHOT) [ 20] [Active ] [ 5] ZigBee Health > Care Cluster Library (0.1.0.SNAPSHOT) [ 21] [Active ] [ 5] ZigBee > Smart Energy v.1 Cluster Library (0.1.0.SNAPSHOT) [ 22] [Active ] [ > 5] Energy@Home Cluster Library (0.1.0.SNAPSHOT) [ 23] [Installed ] [ > 5] ZIC for CC253x devices (0.3.0.SNAPSHOT) [ 24] [Installed ] [ 5] ZIC > for EZ430-RF2480 dongle (0.8.0.SNAPSHOT) [ 25] [Installed ] [ 5] STUB > implementation of:OSGi ZigBee Base Driver (0.2.0.SNAPSHOT) [ 26] > [Active ] [ 1] Apache Felix Shell Service (1.4.1) [ 27] [Active > ] [ 1] Apache Felix Shell TUI (1.4.1) * > > _______________________________________________ > Dev mailing list > [email protected] > http://zb4osgi.aaloa.org/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://zb4osgi.aaloa.org/mailman/listinfo/dev
