maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis, Eric" <Eric.Le...@ipi.ch>
Subject Findbugs 2.4.0 fails with NoClassDefFoundError
Date Wed, 02 May 2012 15:30:00 GMT
Hi

We're having a very weird error with the latest Findbugs plugin.
It works fine on our test build server, but it fails on our production build server.

Here's the output:
     [java] java.lang.NoClassDefFoundError: org/apache/bcel/classfile/ClassFormatException
     [java] Caused by: java.lang.ClassNotFoundException: org.apache.bcel.classfile.ClassFormatException
     [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     [java] 	at java.security.AccessController.doPrivileged(Native Method)
     [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java] Could not find the main class: edu.umd.cs.findbugs.FindBugs2.  Program will exit.
     [java] Exception in thread "main"

When running in debug mode, we can see that the classpathes of the test and production servers
differ.

Here are the JARs that appear on the test server, but not on the production server:
[DEBUG]          com.google.code.findbugs:bcel:jar:2.0.0:compile
[DEBUG]          com.google.code.findbugs:jsr305:jar:2.0.0:compile
[DEBUG]          com.google.code.findbugs:jFormatString:jar:2.0.0:compile
[DEBUG]          com.google.code.findbugs:annotations:jar:2.0.0:compile
[DEBUG]          dom4j:dom4j:jar:1.6.1:compile
[DEBUG]          jaxen:jaxen:jar:1.1.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xom:xom:jar:1.0:compile
[DEBUG]                xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]                xalan:xalan:jar:2.6.0:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]          asm:asm:jar:3.3:compile
[DEBUG]          asm:asm-tree:jar:3.3:compile
[DEBUG]          asm:asm-commons:jar:3.3:compile

Any hints what we're doing wrong or how I could chase that bug better?

Thanks & best regards,
Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message