Thanh NGUYEN wrote:
Hi all,
I'm newbie for felix. I have just built felix with succes by using
maven. But when I tried to start felix with this command :
java -DproxySet=true -Dhttp.proxyHost=proxy.host.company
-Dhttp.proxyPort=3128 -Dhttp.proxyUser=mylogin
-Dhttp.proxyPassword=mypass -jar bin/felix.jar
Sorry, I didn't notice this command line. What happens if you start
Felix without the proxy settings?
-> richard
and got this error :
Welcome to Felix.
=================
Enter profile name: tlgate
DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0
DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0
DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 1.0
-> ERROR: Error starting
file:bundle/org.apache.felix.bundlerepository-0.8.0-SNAPSHOT.jar
(org.osgi.framework.BundleException: Activator start error.)
java.lang.IllegalStateException: Unknown protocol: http
at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:135)
at java.net.URL.<init>(libgcj.so.7)
at java.net.URL.<init>(libgcj.so.7)
at
org.apache.felix.bundlerepository.RepositoryAdminImpl.<init>(RepositoryAdminImpl.java:73)
at
org.apache.felix.bundlerepository.Activator.start(Activator.java:35)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:511)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1266)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1206)
at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:815)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:257)
at java.lang.Thread.run(libgcj.so.7)
Obviously, the bundle BundleRepository can not be launched :
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
[ 1] [Active ] [ 1] Apache Felix Shell Service (0.8.0.SNAPSHOT)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (0.8.0.SNAPSHOT)
[ 3] [Resolved ] [ 1] Apache Felix Bundle Repository
(0.8.0.SNAPSHOT)
-> start 3
org.osgi.framework.BundleException: Activator start error.
at org.apache.felix.framework.Felix._startBundle(Felix.java:1305)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1206)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:346)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:83)
at org.apache.felix.shell.impl.Activator
$ShellServiceImpl.executeCommand(Activator.java:271)
at org.apache.felix.shell.tui.Activator
$ShellTuiRunnable.run(Activator.java:173)
at java.lang.Thread.run(libgcj.so.7)
Caused by: java.lang.IllegalStateException: Unknown protocol: http
at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:135)
at java.net.URL.<init>(libgcj.so.7)
at java.net.URL.<init>(libgcj.so.7)
at
org.apache.felix.bundlerepository.RepositoryAdminImpl.<init>(RepositoryAdminImpl.java:73)
at
org.apache.felix.bundlerepository.Activator.start(Activator.java:35)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:511)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1266)
...6 more
java.lang.IllegalStateException: Unknown protocol: http
Does anybody have an idea about this issue ? And how can I resolve it ?
Thanks in advance for your helps.
NT