• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in hibernate - Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/BasicLog

 
sanket jani
Ranch Hand
Posts: 47
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends ,

i am new to hibernate ..

while i am running the code it give me following error..

i have attached screnshot of my code with this..

please help me to solve this problem...

tell me if any jar file is needed which i not involve in it.

i use hibernate 4.3.5 and oracle 10g database
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:192)
at com.hibernate.chapt1.TestEmploye.main(TestEmploye.java:14)
Caused by: java.lang.ClassNotFoundException: org.jboss.logging.BasicLogger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
hiber_config.png
[Thumbnail for hiber_config.png]
hibernate config file
employee.png
[Thumbnail for employee.png]
getter and setter
testemployee.png
[Thumbnail for testemployee.png]
file which gives error
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add jboss-common-client.jar from the client directory to your classpath.
 
sanket jani
Ranch Hand
Posts: 47
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No it's not working .

i add the file which you recommend..


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic