Hi,

That's strange - it works for me :)

Could you try adding this dependency to the commons classloader pom:

<dependency>
    <groupId>org.ops4j.pax.swissbox</groupId>
    <artifactId>pax-swissbox-framework</artifactId>
    <version>1.5.0</version>
    <packaging>jar</packaging>
</dependency>

Regards
Carsten

2012/5/8 Sarwar Bhuiyan <[email protected]>:
> I'm trying to build the latest trunk of sling.  I've got java 1.6 and maven
> 3 installed, no settings file in .m2/ folder.  I keep getting this error
> before the build fails:
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
> 61 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System
> (Versi
> on: 2.4.0.RC1) created.
> 277 [main] INFO org.ops4j.exec.DefaultJavaRunner - DefaultJavaRunner
> completed s
> uccessfully
>
> java.lang.NoClassDefFoundError:
> org/ops4j/pax/swissbox/framework/RemoteFramework
> Impl
> Caused by: java.lang.ClassNotFoundException:
> org.ops4j.pax.swissbox.framework.Re
> moteFrameworkImpl
>        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:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class:
> org.ops4j.pax.swissbox.framework.RemoteFrameworkI
> mpl.  Program will exit.
> Exception in thread "main"
>
> I can skip the tests and the build proceeds fine.  Is there anything I
> might be missing?
>
>
> Sarwar



-- 
Carsten Ziegeler
[email protected]

Reply via email to