Matt:

This is a non-responsive answer but hopefully you will find it helpful in
some way.

In my months of terror beginning to learn OSGi (I am still a babe in the
woods) I have sometimes found the NoClassDefFoundError as roughly equivalent
to "something is wrong, somewhere", and often completely unrelated to the
class that it is reporting as missing. It's kind of like a NullPointer it
could mean anything, or at least that has been happened to me for weeks at a
time.

This may not apply to you issues below, but either way I'm guessing Toni
won't be able to help with the amount of information you provided.

On Thu, Feb 24, 2011 at 11:48 AM, Matt Madhavan <[email protected]>wrote:

> Hello,
> I have posted this a few times! When I run either of the following
> commands:
>
> * pax-run
> * mvn pax:provision -Drunner=1.5.0 -Dplatform=felix
>
> I'm getting the following error. I also inspected the bundles folder and I
> do not see the felixmain bundle! But if I run the same command with
> -Dversion=3.0.0 it works, but it provisions felixmain 3.0.0. But I want the
> latest 3.0.2 (- preferably 3.0.7 if possible).
>
> \______   \_____  ___  ___ \______   \__ __  ____   ____   ___________
> |     ___/\__  \ \  \/  /  |       _/  |  \/    \ /    \_/ __ \_  __ \
> |    |     / __ \_>    <   |    |   \  |  /   |  \   |  \  ___/|  | \/
> |____|    (____  /__/\_ \  |____|_  /____/|___|  /___|  /\___  >__|
>                \/      \/         \/           \/     \/     \/
>
> Pax Runner (1.5.0) from OPS4J - http://www.ops4j.org
> ----------------------------------------------------
>
>  -> Using config [classpath:META-INF/runner.properties]
>  -> Using only arguments from command line
>  -> Preparing framework [Felix 3.0.2]
>  -> Downloading bundles...
>  -> Using execution environment [J2SE-1.6]
>  -> Runner has successfully finished his job!
>
> 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 Tony or some one else take a look at this please?
>
> ----------------------------------------------------------------------------------
>
>
> Thanks
> Matt
>
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
>
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to