Apache Felix 加入http service
1.download jetty from Apache Felix website.
2.download Config Admin from Apache Felix website.
Welcome to Felix
================
ERROR: Error starting file:/D:/OSGi/felix-jetty/bundle/org.apache.felix.http.jet
ty-1.0.1.jar (org.osgi.framework.BundleException: Unresolved constraint in bundl
e org.apache.felix.http.jetty [2]: package; (&(package=org.osgi.service.cm)(vers
ion>=1.2.0)))
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.f
elix.http.jetty [2]: package; (&(package=org.osgi.service.cm)(version>=1.2.0))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3268)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1596)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
)
at java.lang.Thread.run(Unknown Source)
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.0)
[ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.1)
[ 2] [Installed ] [ 1] HTTP Service (1.0.1)
[ 3] [Active ] [ 1] Apache Felix Shell Service (1.4.0)
[ 4] [Active ] [ 1] Apache Felix Shell TUI (1.4.0)
-> install file:bundle/org.apache.felix.configadmin-1.2.4.jar
Bundle ID: 6
-> start 2
-> org.mortbay.log:Logging to org.mortbay.log via org.apache.felix.http.jetty.Lo
gServiceLog
org.mortbay.log:Init SecureRandom.
org.mortbay.log:started org.mortbay.jetty.servlet.HashSessionIdManager@a352a5
org.mortbay.log:started org.mortbay.jetty.servlet.HashSessionManager@704baa
org.mortbay.log:starting OsgiServletHandler@1b4fad5
org.mortbay.log:started OsgiServletHandler@1b4fad5
org.mortbay.log:starting SessionHandler@bfea1d
org.mortbay.log:started SessionHandler@bfea1d
org.mortbay.log:starting org.mortbay.jetty.servlet.Context@87a5cc{/,null}
org.mortbay.log:starting ErrorHandler@1a33d48
org.mortbay.log:started ErrorHandler@1a33d48
org.mortbay.log:started org.mortbay.jetty.servlet.Context@87a5cc{/,null}
org.mortbay.log:jetty-6.1.x
org.mortbay.log:started Realm[OSGi HTTP Service Realm]==[]
org.mortbay.log:started org.mortbay.thread.QueuedThreadPool@166aa18
org.mortbay.log:starting Server@5329c5
org.mortbay.log:started org.mortbay.jetty.nio.SelectChannelConnector$1@79717e
org.mortbay.log:Started SelectChannelConnector@0.0.0.0:8080
org.mortbay.log:started SelectChannelConnector@0.0.0.0:8080
org.mortbay.log:started Server@5329c5
3.http://localhost:8080 to test
沒有留言:
張貼留言