开发者

PAX-URL: "Protocol not supported" at Felix's startup

I'm using PAX-URL 开发者_如何学JAVAto launch a Felix based project from Eclipse. I use the assembly protocol to avoid having to pre-pack my bundles.

In the project, felix is started using the felix.jar and a config.properties which includes felix.auto.start.1=assembly:foo/bar/classes to start one of my unpacked bundles.

The trouble is, felix doesn't know about the pax-url protocols until after it's finished reading that config file, so I get an "Unknown Protocol: assembly" error.

What am I doing wrong? Is it possible to tell Felix to load pax-url at boot time already?

Thanks!


The same problem is solved by this question. The way it's asked gives you a different way to look for the solution, so I'm going to not mark this question as a duplicate. Thanks Bjorn for the tip!


You can cheat, adding pax url to the bootclasspath (depends on how you actually launch felix) and add the following system property to the starting vm: -Djava.protocol.handler.pkgs=org.ops4j.pax.url

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜