users@glassfish.java.net

Re: Java EE + JPA questions

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Oct 2010 02:07:05 PDT

I am a JPA starter and am getting below error while running simple JPA example,could some able to help out ?

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.AbstractMethodError: org.slf4j.impl.Log4jLoggerAdapter.trace(Ljava/lang/String;Ljava/lang/Object;)V
        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:313)
        at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
        at JPASetFirstResult.main(JPASetFirstResult.java:53)
[Message sent by forum member 'jpa_baby_2010']

http://forums.java.net/jive/thread.jspa?messageID=484091