-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Invalid logger interface org.hibernate.internal.CoreMessage
PostPosted: Tue Oct 02, 2012 5:28 pm 
Newbie

Joined: Wed Sep 12, 2012 6:03 pm
Posts: 9
In java program TestJavaProgram.java

1 private static SessionFactory sessionFactory;
2 private static ServiceRegistry serviceRegistry;
3
4 private static SessionFactory configureSessionFactory() throws HibernateException {
5 Configuration configuration = new Configuration();
6 configuration.configure();
7 serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();
8 sessionFactory = configuration.buildSessionFactory(serviceRegistry);
9 return sessionFactory;
10 }

I'm getting this error

Exception in thread "main" java.lang.ExceptionInInitializerError
at TestJavaProgram.configureSessionFactory(TestJavaProgram.java:5)
at TestJavaProgram.main(TestJavaProgram.java:167)
Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.hibernate.internal.CoreMessageLogger (implementation not found)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:176)
... 2 more

does anyone know how to resolve this error?

thanks


Top
 Profile  
 
 Post subject: Re: Invalid logger interface org.hibernate.internal.CoreMessage
PostPosted: Fri Apr 10, 2015 8:01 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I'm getting the same error, although org.hibernate.internal.CoreMessageLogger seems to be in the classpath.
Any advice is welcome.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.