Hello,
I had posted this yesterday! Has any one have any answer for this please?
Thanks
Matt
Hello,
I created a sample project called helloworld as follows:
pax-create-project -g com.habuma.osgi -a helloworld -v 1.0-SNAPSHOT
cd helloworld
When I ran the following command :
pax-provision
I'm getting the following error:
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"
By default I believe the PAX construct is trying to provision Felix 3.0.2.
But when I run the following command:
--------------------------------------------------------
mvn pax:provision -Drunner=1.5.0 -Dplatform=felix -Dversion=3.0.0
The provisioning works just fine and thin Felix console is provisioned and
started.
Note that I'm specifying version 3.0.0 for Felix
------------------------------------------------------------------
I have couple of questions now
---------------------------------------------
1. HOw do I specify command line options for the pax-provision (like type of
runner, runner version etc).
2. Where does pax-provision get its configuration. May be I can look to see
whats missing.
3. it will be nice if I can specify something like -Drunner-version instead
of -Dversion. (-Dversion can mean number of things)
Thanks
Matt
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general