felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Zemann <oliver.zem...@gmail.com>
Subject Re: My OSGi bundle does not find itself??
Date Wed, 05 Sep 2012 21:01:30 GMT
For me it looks ok, maybe someone can see whats wrong:

C:\Users\oli\Desktop\felix-framework-4.0.3>java -jar bin\felix.jar
DEBUG: WIRE: [17.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0)) -> [3.0]
DEBUG: WIRE: [4.0] osgi.wiring.package; 
(osgi.wiring.package=javax.naming) -> [0]
DEBUG: WIRE: [4.0] osgi.wiring.package; (osgi.wiring.package=javax.sql) 
-> [0]
DEBUG: WIRE: [4.0] osgi.wiring.package; 
(osgi.wiring.package=javax.xml.parsers) -> [0]
DEBUG: WIRE: [4.0] osgi.wiring.package; 
(osgi.wiring.package=org.xml.sax) -> [0]
DEBUG: WIRE: [4.0] osgi.wiring.package; 
(osgi.wiring.package=org.xml.sax.helpers) -> [0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.boolex)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.db)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.encoder)(version>=1.0.0)) -> 
[4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.filter)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.helpers)(version>=1.0.0)) -> 
[4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.html)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran.action)(version>=1.0.0)) -> 
[4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran.conditional)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran.event)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran.spi)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.joran.util)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.net)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.pattern)(version>=1.0.0)) -> 
[4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.pattern.color)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.pattern.parser)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.read)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.rolling)(version>=1.0.0)) -> 
[4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.rolling.helper)(version>=1.0.0)) 
-> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.sift)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.spi)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.status)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=ch.qos.logback.core.util)(version>=1.0.0)) -> [4.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(osgi.wiring.package=javax.management) -> [0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(osgi.wiring.package=javax.naming) -> [0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)) -> [17.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j.helpers)(version>=1.6.0)) -> [17.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)) -> [17.0]
DEBUG: WIRE: [3.0] osgi.wiring.package; 
(osgi.wiring.package=org.xml.sax) -> [0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.felix.service.command)(status=provisional)(version>=0.10.0)(!(version>=1.0.0)))

-> [12.0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.5.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework.wiring)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.packageadmin)(version>=1.2.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.startlevel)(version>=1.1.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [11.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.util.tracker)(version>=1.3.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [5.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.framework) -> [0]
DEBUG: WIRE: [5.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.service.log) -> [11.0]
DEBUG: WIRE: [5.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.util.tracker) -> [0]
DEBUG: WIRE: [12.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.framework) -> [0]
DEBUG: WIRE: [12.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.service.event) -> [9.0]
DEBUG: WIRE: [12.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.util.tracker) -> [0]
DEBUG: WIRE: [9.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.3.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [6.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.aries.util.manifest)(version>=0.1.0)(!(version>=1.0.0)))

-> [7.0]
DEBUG: WIRE: [6.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.5.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [6.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.service.log) -> [11.0]
DEBUG: WIRE: [6.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.util.tracker) -> [0]
DEBUG: WIRE: [7.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.5.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [7.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework.hooks.bundle)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [7.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework.launch)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [7.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework.wiring)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [7.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [8.0] osgi.wiring.package; 
(osgi.wiring.package=javax.xml.stream) -> [0]
DEBUG: WIRE: [8.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [8.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))

-> [11.0]
DEBUG: WIRE: [8.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.url)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))

-> [11.0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.packageadmin)(version>=1.2.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.startlevel)(version>=1.1.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.url)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [10.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))

-> [0]
DEBUG: DYNAMIC WIRE: [11.0] osgi.wiring.package; 
(osgi.wiring.package=org.apache.felix.bundlerepository) -> [8.0]
DEBUG: WIRE: [13.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.felix.service.command)(status=provisional)(version>=0.10.0))

-> [12.0]
DEBUG: WIRE: [13.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.framework) -> [0]
DEBUG: WIRE: [13.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.service.startlevel) -> [0]
DEBUG: WIRE: [13.0] osgi.wiring.package; 
(osgi.wiring.package=org.osgi.util.tracker) -> [0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(osgi.wiring.package=javax.xml.parsers) -> [0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.event)(version>=1.0.0)(!(version>=2.0.0)))

-> [9.0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))

-> [11.0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.util.tracker)(version>=1.0.0)(!(version>=2.0.0)))

-> [0]
DEBUG: WIRE: [16.0] osgi.wiring.package; 
(osgi.wiring.package=org.w3c.dom) -> [0]
DEBUG: WIRE: [15.0] osgi.wiring.package; 
(osgi.wiring.package=javax.net.ssl) -> [0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(osgi.wiring.package=javax.crypto) -> [0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(osgi.wiring.package=javax.crypto.spec) -> [0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(osgi.wiring.package=javax.net.ssl) -> [0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(osgi.wiring.package=javax.security.auth.x500) -> [0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.commons.logging)(version>=1.1.1)) -> 
[16.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.concurrent)(version>=4.2.1)) -> 
[15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.entity)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.impl)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.impl.entity)(version>=4.2.1)) -> 
[15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.impl.io)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.impl.pool)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.io)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.message)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.params)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.pool)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.protocol)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.http.util)(version>=4.2.1)) -> [15.0]
DEBUG: WIRE: [14.0] osgi.wiring.package; 
(osgi.wiring.package=org.ietf.jgss) -> [0]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Enabling SLF4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Enabling Jakarta Commons Logging API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Enabling Log4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Enabling Avalon Logger API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Enabling JULI Logger API support.
ERROR: Bundle org.dyndns.soundi.SoundBox [18] Error starting 
file:/C:/Users/oli/Desktop/felix-framework-4.0.3/bundle/SoundBox-0.0.1-SNAPSHOT.jar 
(org.osgi.framework.BundleException: Unresolved constraint in bundle org.dy
ndns.soundi.SoundBox [18]: Unable to resolve 18.0: missing requirement 
[18.0] osgi.wiring.package; 
(osgi.wiring.package=org.dyndns.soundi.soundbox))
org.osgi.framework.BundleException: Unresolved constraint in bundle 
org.dyndns.soundi.SoundBox [18]: Unable to resolve 18.0: missing 
requirement [18.0] osgi.wiring.package; 
(osgi.wiring.package=org.dyndns.soundi.soundbox
)
         at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
         at 
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
         at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
         at java.lang.Thread.run(Unknown Source)
DEBUG: WIRE: [19.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.framework)(version>=1.5.0)(!(version>=2.0.0))) 
-> [0]
DEBUG: WIRE: [19.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.osgi.service.event)(version>=1.1.0)(!(version>=2.0.0)))

-> [9.0]
DEBUG: WIRE: [19.0] osgi.wiring.package; 
(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0))) -> 
[17.0]
Registering Util Object!
DEBUG: Bundle ch.qos.logback.classic [3] logback.groovy not found by 
ch.qos.logback.classic [3]
DEBUG: Bundle ch.qos.logback.classic [3] logback-test.xml not found by 
ch.qos.logback.classic [3]
DEBUG: Bundle ch.qos.logback.classic [3] logback.xml not found by 
ch.qos.logback.classic [3]
____________________________
Welcome to Apache Felix Gogo

g!

And yes the package is in the bundle which should start everything. I 
just pushed the current code: https://github.com/olze/SoundBox
On checkout just use --recursive for the Core-Library, thats the only 
dependency which is neccessary.

Thanks in advance!



Am 05.09.2012 22:56, schrieb Richard S. Hall:
> Set the framework log level to 4 in conf/config.properties...it will 
> print other errors encountered. It is possible that there is some 
> other conflict happening before that prevents it from finding a solution.
>
> -> richard
>
> On 9/5/12 16:14 , Oliver Zemann wrote:
>> I have a project with some bundles. When i start it i get:
>>
>> C:\Users\oli\Desktop\felix-framework-4.0.3>java -jar bin\felix.jar
>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
>> : Enabling SLF4J API support.
>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
>> : Enabling Jakarta Commons Logging API support.
>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
>> : Enabling Log4J API support.
>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
>> : Enabling Avalon Logger API support.
>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
>> : Enabling JULI Logger API support.
>> ERROR: Bundle org.dyndns.soundi.SoundBox [18] Error starting 
>> file:/C:/Users/oli/Desktop/felix-framework-4.0.3/bundle/SoundBox-0.0.1-SNAPSHOT.jar

>> (org.osgi.framework.BundleException: Unresolved constraint in bundle 
>> org.
>> ndns.soundi.SoundBox [18]: Unable to resolve 18.0: missing 
>> requirement [18.0] osgi.wiring.package; 
>> (osgi.wiring.package=org.dyndns.soundi.soundbox))
>> org.osgi.framework.BundleException: Unresolved constraint in bundle 
>> org.dyndns.soundi.SoundBox [18]: Unable to resolve 18.0: missing 
>> requirement [18.0] osgi.wiring.package; 
>> (osgi.wiring.package=org.dyndns.soundi.soundb
>> )
>>         at 
>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
>>         at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
>>         at 
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
>>         at 
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
>>         at java.lang.Thread.run(Unknown Source)
>> Registering Util Object!
>> ____________________________
>> Welcome to Apache Felix Gogo
>>
>> g!
>>
>> I checked the export dialog in netbeans which exports 
>> "org.dyndns.soundi.soundbox" - so it should find itself. I am really 
>> confused whats wrong now. It compiles fine without any problems.
>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message