felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thanh NGUYEN <t...@teamlog.com>
Subject Re: Issue on starting file:bundle/org.apache.felix.bundlerepository-0.8.0-SNAPSHOT.jar
Date Thu, 09 Nov 2006 11:54:44 GMT
Hi all, 

Thanks for your quick answers about this issue. I found it out.

In fact, GNU Classpath has built-in http protocol handler but it is
named differently. For solving it, I have changed
the static variable DEFAULT_STREAM_HANDLER_PACKAGE in Felix's
URLHandlers.java file to "gnu.java.net.protocol" instead of
"sun.net.www.protocol". And now it does not give any error.

Once more time, thanks to all.

NT


Le mercredi 08 novembre 2006 à 22:33 -0500, Richard S. Hall a écrit :
> Thanh NGUYEN wrote:
> > Hi all, 
> >
> > I am newbie to Felix. I have built with succes Felix with Maven by using
> > jdk1.5. In my project, I have to use JamVM as JVM, instead of SUN JVM.
> > When I tried to launch Felix with jamvm : 
> >
> > # jamvm -jar bin/felix.jar
> >   
> 
> Hmm. Is this the same as the other message to which I responded?
> 
> The Sun JRE implements built-in protocols according to a particular 
> packaging naming strategy, which is 
> sun.net.www.protocol.<protocol>.Handler, which is how Felix searches for 
> built-in protocol stream handlers.
> 
> If jam doesn't follow this approach, then you will have a problem. You 
> can disable the URL handlers service or re-implement how Felix discovers 
> the built-in handlers for it.
> 
> -> richard
> 
> > I 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
> >
> > When I tried with SUN JVM, I did not get any issue. Does anybody get the
> > same issue with jamvm in the past or any idea about it ? 
> >
> > Thanks a lot for your helps.
> >
> > NT
> >
> >   


Mime
View raw message