ops4j / org.ops4j.pax.runner

Multi Framework OSGi Runner
http://team.ops4j.org/wiki/display/paxrunner/
47 stars 39 forks source link

pax-runner with pax:provision [PAXRUNNER-432] #433

Open ops4j-issues opened 11 years ago

ops4j-issues commented 11 years ago

Paul Vonnahme created PAXRUNNER-432

I've just started trying to do some things with OSGI. A couple weeks ago I had used pax-create-project to creating an OSGI project, and pax:provision was working. It broke last week, and I noticed the new version of pax-runner (1.8.5) had been released. I switched back to 1.8.3 by adding <runner>1.8.3</runner> to my maven-pax-plugin configuration and it works again. If I download https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=org.ops4j.pax.runner&a=pax-runner-assembly&v=1.8.5&e=zip&c=jdk15 and unzip it I'm able to use 1.8.5, so it must be something with the archetype and pax:provision that leads to my error.

The error I get with 1.8.5 but not with 1.8.3 when using pax:provision on the archetype is:

 -> Preparing framework [Felix 4.0.3]
 -> Downloading bundles...
 -> Using execution environment [J2SE-1.6]
 -> Runner has successfully finished his job!

java.lang.NoClassDefFoundError: releases
Caused by: java.lang.ClassNotFoundException: releases
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: releases.  Program will exit.
Exception in thread "main"
 -> Platform has been shutdown.

This is minor since I can use 1.8.3, and it may be an issue with my environment since I'm new to this, but thought I would report it in case others are having the same issue.


Votes: 0, Watches: 0

ops4j-issues commented 11 years ago

Dmytro Pishchukhin commented

Could you provide pax-runner options you use, please?