1

I'm just trying to learn Hibernate (version 4 final) but I have a problem when trying to create the session factory. Here is some code related to the problem:

full error log:

Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:192)
at DAO.bdDAO.createSessionFactory(bdDAO.java:16)
at DAO.CategorieTechnicienDAO.Add(CategorieTechnicienDAO.java:21)
at DAO.CategorieTechnicienDAO.main(CategorieTechnicienDAO.java:71)

the libraries (.jar)

.jar

M. Deinum
  • 115,695
  • 22
  • 220
  • 224
TheLionard
  • 23
  • 5
  • can you list out the library (.jar) you are using for hibernate? It seems the library files issue. – santu May 21 '14 at 09:27
  • http://i.stack.imgur.com/kYja5.jpg – TheLionard May 21 '14 at 09:35
  • You are mixking hibernate versions (4.3.5 and 4.2.2) next you also have duplicate hibernate-commons-annotations on your class path. – M. Deinum May 21 '14 at 09:39
  • please refer: http://stackoverflow.com/questions/10846184/error-java-lang-nosuchmethoderror-org-jboss-logging-logger-getmessagelogger. Hope it could be useful to you. Also use a common version and don't mix many versions for any particular library. – santu May 21 '14 at 09:43

0 Answers0