Daemon
Daemon

Reputation: 185

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 :-

Am I missing some more jar file ?

Thanks


EDIT :

I did include the following jar file inside classpath :-

But, Facing the error:

java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Lj‌​ava/lang/Object

Upvotes: 11

Views: 52217

Answers (4)

Amit Deshpande
Amit Deshpande

Reputation: 19185

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.

Upvotes: 15

thar45
thar45

Reputation: 3560

To solve

 java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Lj‌​ava/lang/Object

use the JAR file (jboss-client-7.1.0.Final.jar) this will help you to solve solve your error

Upvotes: 1

Russell Gutierrez
Russell Gutierrez

Reputation: 1385

If those files already exist, try adding them to your Java Build Path. You can use this as reference: Java Build Path

Upvotes: 1

gprathour
gprathour

Reputation: 15333

You need jboss-logging.jar

You can get it from here

Upvotes: 4

Related Questions