Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ops4j-issues opened this issue Dec 20, 2012 · 1 comment
Open

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

ops4j-issues opened this issue Dec 20, 2012 · 1 comment
Labels

Comments

@ops4j-issues
Copy link

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
Copy link
Author

Dmytro Pishchukhin commented

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant