Package: maven2
Version: 2.2.1-5

Hi,

I tried installing a software (ExoPlatform 3.0) using debian's maven,
but I got :

java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher

With Apache's maven 2.2.1, it works perfectly.

ExoPlatform uses something strange to build, with lots of Javascript
files run with Mozilla Rhino.

At the end, it runs classworlds using the following code :

    var mvnClasspath = [
      new java.net.URL("file:" + m2Home + "/core/boot/classworlds-1.1.jar"),
      new java.net.URL("file:" + m2Home + "/boot/classworlds-1.1.jar")
    ] ;

    var contextLoader= java.lang.Thread.currentThread().getContextClassLoader();
    var mvnLoader = new java.net.URLClassLoader(mvnClasspath, contextLoader);
    java.lang.Thread.currentThread().setContextClassLoader(mvnLoader);
    var  type = mvnLoader.loadClass("org.codehaus.classworlds.Launcher") ;

In apache's maven 2.2.1, classworlds jar is in
boot/classworlds-1.1.jar. In debian's distribution, it is in
boot/classworlds.jar.
That's why I get this ClassNotFoundException.

Then an obvious solution would be to rename the symlink to mimic
Apache's official distribution.

Thanks,
-- 
Julien



__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. Please 
use
[email protected] for discussions and questions.

Reply via email to