Just a follow up on this...

I looked into it and it won't work using the Felix launcher's auto-start properties...when these properties are processed, all bundles are installed first, before any bundles are started.

The reason it works this way is that there can still be package dependencies among bundles in different start levels, so all bundles are installed first, to make sure all package dependencies can be satisfied. After that, all bundles are started in start-level order. So, as you can imagine, this means that the mvn: URL is being used before the PAX URL bundle is started.

I believe one way to get around this is to put the PAX URL bundle in the Felix auto-deploy directory, since this directory is processed before the auto-start properties. Otherwise, you can write your custom framework launcher, which is fairly easy to do...just look at the code for Felix' launcher...there isn't much to it.

-> richard

On 6/6/11 3:26, Konstantinos Giannoutakis wrote:
Yes..it has the same behavior..



On 3/6/2011 5:31 μμ, Richard S. Hall wrote:
That looks reasonable.

If you just start the Felix framework from the command line like normal (i.e., java -jar bin/felix.jar) with this configuration, does it still fail?

-> richard

On 6/3/11 10:02, Konstantinos Giannoutakis wrote:
Hi,

I use the following order in my config.properties file:

felix.auto.start.1=\
"file:/D:/EclipseWorkspace/rundir/runner/bundles/org.apache.felix.shell_1.0.2.jar" \ "file:/D:/EclipseWorkspace/rundir/runner/bundles/org.apache.felix.shell.tui_1.0.2.jar" \
"file:/C:/pax-url-mvn-1.3.2.jar"
felix.auto.start.2=\
"mvn:myGroupId/myArtifactId"

that means that the bundle
"mvn:myGroupId/myArtifactId"
will be installed after the installation of pax-url-mvn-1.3.2.jar, but I get the "Unknown protocol: mvn" error. The strange is that if I enter the following command in the felix command line:

install mvn:myGroupId/myArtifactId

the artifact is installed successfully.
Is there any synchronization issue with the auto start levels?

In pax runner plugin for eclipse, there is no need to install pax-url-mvn bundle.. it is somehow pre-installed and the mvn protocol registered. Can I do it also in my code before executing Felix?


Thank you,
Kostas





On 3/6/2011 4:32 μμ, Richard S. Hall wrote:
The important thing is that you will have to have it active before anyone tries to use a mvn: URL...I'm not sure when you are trying to use the URL relative to when you start the Pax bundle, but that is likely the issue.

-> richard

On 6/3/11 4:18, Konstantinos Giannoutakis wrote:
Hi to all,

I am trying to run Felix with eclipse (as described in http://felix.apache.org/site/integrating-felix-with-eclipse.html), but I want my bundles to be loaded from my local Maven repository. How should I register for example pax mvn to the felix framework?
If I load pax mvn in level 1 of my container, I still get:

Caused by: java.net.MalformedURLException: Unknown protocol: mvn

Can anyone help me with this?

Thank you very much,
Kostas

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general



_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general



_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to