You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Matt Madhavan <ma...@gmail.com> on 2011/02/13 01:06:45 UTC
PAX-RUNNER 1.5 issue with Felix versions
Hello,
It looks like pax-runner has problem with Felix 3.0.2 configuration.
The pax-run, I think defaults to felix 3.0.2 configuration and it fails. I
have already posted this issue.
So I ran the following commands
mvn org.ops4j:maven-pax-plugin:create-project
-DgroupId=com.hcsc.itf.osgi.samples -DartifactId=maven-osgi-dev
-Dversion=1.0-SNAPSHOT
cd maven-osgi-dev
mvn install pax:provision -Drunner=1.5.0 -Dplatform=felix -Dversion=3.0.0
The felix (3.0.0) started successfully!
But when I ran the same last command with version 3.0.2 and 3.0.1 it failed!
mvn install pax:provision -Drunner=1.5.0 -Dplatform=felix -Dversion=3.0.2
The following is the output!
java.lang.NoClassDefFoundError: org/apache/felix/main/Main
Caused by: java.lang.ClassNotFoundException: org.apache.felix.main.Main
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: org.apache.felix.main.Main. Program will
exit.
Exception in thread "main"
-> Platform has been shutdown.
Can some one look into this please?
Thanks
Matt