You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Lost <sh...@126.com> on 2015/09/18 10:46:05 UTC

how to runing felix in android device

 HI
when i reference this sample with this document
http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-and-google-android.html
<http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-and-google-android.html>  
the Felix is working(my felix version is
org.apache.felix.main.distribution-5.2.0.zip)
but when I tried to install 
org.apache.felix.http.api-2.3.2.jar,org.apache.felix.http.servlet-api-1.1.2.jar,org.apache.felix.http.jetty-2.2.0.jar
it happen exception:


Problem creating boot delegation class loader:
java.lang.reflect.InvocationTarge
tException
Auto-properties install:
file:bundle/org.apache.felix.bundlerepository-2.0.4.jar
 (org.osgi.framework.BundleException: Bundle symbolic name and version are
not u
nique: org.apache.felix.bundlerepository:2.0.4)
Auto-properties install:
file:bundle/org.apache.felix.gogo.command-0.14.0.jar (o
rg.osgi.framework.BundleException: Bundle symbolic name and version are not
uniq
ue: org.apache.felix.gogo.command:0.14.0)
Auto-properties install: file:bundle/org.apache.felix.gogo.shell-0.10.0.jar
(org
.osgi.framework.BundleException: Bundle symbolic name and version are not
unique
: org.apache.felix.gogo.shell:0.10.0)
Auto-properties install:
file:bundle/org.apache.felix.gogo.runtime-0.16.2.jar (o
rg.osgi.framework.BundleException: Bundle symbolic name and version are not
uniq
ue: org.apache.felix.gogo.runtime:0.16.2)
Auto-properties install: file:bundle/org.apache.felix.scr-2.0.0.jar
(org.osgi.fr
amework.BundleException: Bundle symbolic name and version are not unique:
org.ap
ache.felix.scr:2.0.0)
Auto-properties install: file:bundle/org.apache.felix.http.jetty-2.2.0.jar
(org.
osgi.framework.BundleException: Bundle symbolic name and version are not
unique:
 org.apache.felix.http.jetty:2.2.0)
Auto-properties install:
file:bundle/org.apache.felix.http.servlet-api-1.1.2.jar
 (org.osgi.framework.BundleException: Bundle symbolic name and version are
not u
nique: org.apache.felix.http.servlet-api:1.1.2)
Auto-properties install: file:bundle/org.apache.felix.http.api-2.3.2.jar
(org.os
gi.framework.BundleException: Bundle symbolic name and version are not
unique: o
rg.apache.felix.http.api:2.3.2)
Auto-properties start:
file:bundle/org.apache.felix.bundlerepository-2.0.4.jar (
org.osgi.framework.BundleException: Bundle symbolic name and version are not
uni
que: org.apache.felix.bundlerepository:2.0.4)
Auto-properties start: file:bundle/org.apache.felix.gogo.command-0.14.0.jar
(org
.osgi.framework.BundleException: Bundle symbolic name and version are not
unique
: org.apache.felix.gogo.command:0.14.0)
Auto-properties start: file:bundle/org.apache.felix.gogo.shell-0.10.0.jar
(org.o
sgi.framework.BundleException: Bundle symbolic name and version are not
unique:
org.apache.felix.gogo.shell:0.10.0)
Auto-properties start: file:bundle/org.apache.felix.gogo.runtime-0.16.2.jar
(org
.osgi.framework.BundleException: Bundle symbolic name and version are not
unique
: org.apache.felix.gogo.runtime:0.16.2)
Auto-properties start: file:bundle/org.apache.felix.scr-2.0.0.jar
(org.osgi.fram
ework.BundleException: Bundle symbolic name and version are not unique:
org.apac
he.felix.scr:2.0.0)
Auto-properties start: file:bundle/org.apache.felix.http.jetty-2.2.0.jar
(org.os
gi.framework.BundleException: Bundle symbolic name and version are not
unique: o
rg.apache.felix.http.jetty:2.2.0)
Auto-properties start:
file:bundle/org.apache.felix.http.servlet-api-1.1.2.jar (
org.osgi.framework.BundleException: Bundle symbolic name and version are not
uni
que: org.apache.felix.http.servlet-api:1.1.2)
Auto-properties start: file:bundle/org.apache.felix.http.api-2.3.2.jar
(org.osgi
.framework.BundleException: Bundle symbolic name and version are not unique:
org
.apache.felix.http.api:2.3.2)
____________________________
Welcome to Apache Felix Gogo

g! ERROR: Bundle org.apache.felix.http.servlet-api [7] Error starting
file:/data
/felix/bundle/org.apache.felix.http.servlet-api-1.1.2.jar
(org.osgi.framework.Bu
ndleException: Unable to resolve org.apache.felix.http.servlet-api [7](R
7.0): m
issing requirement [org.apache.felix.http.servlet-api [7](R 7.0)] osgi.ee;
(&(os
gi.ee=JavaSE)(version=1.7)) Unresolved requirements:
[[org.apache.felix.http.ser
vlet-api [7](R 7.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7))])
org.osgi.framework.BundleException: Unable to resolve
org.apache.felix.http.serv
let-api [7](R 7.0): missing requirement [org.apache.felix.http.servlet-api
[7](R
 7.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)) Unresolved requirements:
[[org.
apache.felix.http.servlet-api [7](R 7.0)] osgi.ee;
(&(osgi.ee=JavaSE)(version=1.
7))]
        at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:411
4)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2111)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1365)

        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart
LevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:1019)
ERROR: Bundle org.apache.felix.scr [8] Error starting
file:/data/felix/bundle/or
g.apache.felix.scr-2.0.0.jar (org.osgi.framework.BundleException: Unable to
reso
lve org.apache.felix.scr [8](R 8.0): missing requirement
[org.apache.felix.scr [
8](R 8.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5)) Unresolved
requirements: [[
org.apache.felix.scr [8](R 8.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.scr
[8](R
 8.0): missing requirement [org.apache.felix.scr [8](R 8.0)] osgi.ee;
(&(osgi.ee
=JavaSE)(version=1.5)) Unresolved requirements: [[org.apache.felix.scr [8](R
8.0
)] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5))]
        at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:411
4)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2111)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1365)

        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart
LevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:1019)

*but when i running linux is works vevry well.*

Anyone else got this problem? 

Thanks in advance
-Lost




--
View this message in context: http://apache-felix.18485.x6.nabble.com/how-to-runing-felix-in-android-device-tp5014760.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