Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java NoClassDefFound Error

I am trying to run a basic Hibernate program. When I run it, I am getting the below error

java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger

I tried google'ing for it and did include the following jar files in my classpath :-

  • jboss-common-3.2.3.jar
  • jboss-common-client-3.2.3.jar

Am I missing some more jar file ?

Thanks


EDIT :

I did include the following jar file inside classpath :-

  • jboss-logging-3.1.0.CR1.jar

But, Facing the error:

java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Lj‌​ava/lang/Object
like image 451
Daemon Avatar asked Sep 27 '12 06:09

Daemon


1 Answers

Yes jboss-logging.jar org/jboss/logging/BasicLogger is inside jboss-logging.jar

You can find list of dependent jar for this jar in used by section in this link.

This version should contain the method.

like image 107
Amit Deshpande Avatar answered Oct 06 '22 00:10

Amit Deshpande