PAX URL: "Protocol not supported" when starting Felix

I am using the PAX URL to run a Felix based project from Eclipse. I use the build protocol to avoid pre-packaging packages.

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

The problem is that felix does not know about pax-url protocols until it finishes reading this configuration file, so I get the message "Unknown protocol: assembly".

What am I doing wrong? Can anyone else tell Felix to load pax-url at boot time?

Thank!


The same problem is solved by this issue . The way it is given gives you another way to find a solution, so I will not mark this question as a duplicate. Thanks Bjorn for the tip!

+3
source share
1 answer

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

+4
source

Source: https://habr.com/ru/post/1794938/


All Articles