felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: ERROR: Error starting file:bundle/org.apache.felix.bundlerepository-0.8.0-SNAPSHOT.jar
Date Thu, 09 Nov 2006 03:22:04 GMT
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
>
>
> 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)
>   

First, let me say that you do not need to use the bundlerepository 
bundle at all, so you could just delete it from the 
conf/config.properties auto-start property and you'd be fine, since it 
only provides downloaded access to some bundles.

Having said that, it sounds like you might be using a non-standard VM, 
is this true?

HTTP stream handlers should be handled by the JRE, not by the framework. 
The URL stream handler factory in Felix automatically searches the JRE's 
built-in stream handlers when creating stream handlers for various 
protocols, like "http:", so I don't know why this error would be 
occurring for you if you are using a standard VM.

Do you have any more hints?

-> richard

>    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
>
>
>   

Mime
View raw message