wood burning stoves*
The moose likes Testing and the fly likes Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile" Watch "Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile" New topic
Author

Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile

Mauricio Leoncio dos Santos
Greenhorn

Joined: Oct 14, 2013
Posts: 4
Hi everyone!

This is my first time in here... and I dont found if there's a post answering my question and if here is the right place, so ... here is my doubt:

My team is starting to use Sonar Qube as our "code coverage helper" and when we try "mvn sonar:sonar" or "mvn clean install sonar:sonar" in any project, we got the error below:
Could someone help us?

Thank you

Mauricio







Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

It looks like javaassist is missing from your pom as a dependency. Can you double check your pom (or effective pom)?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mauricio Leoncio dos Santos
Greenhorn

Joined: Oct 14, 2013
Posts: 4
Thank you Jeanne.
Checked! Should we add a dependency whose version is compatible with Sonar?

Sonar version: sonar-3.6.2

Javaassist dependency:





Besides there are others errors that I've forgotten:










Jeanne Boyarsky wrote:It looks like javaassist is missing from your pom as a dependency. Can you double check your pom (or effective pom)?
Mauricio Leoncio dos Santos
Greenhorn

Joined: Oct 14, 2013
Posts: 4
Up
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile