-->
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: Problem with Hibernate JPA
PostPosted: Wed Jun 16, 2010 4:21 am 
Newbie

Joined: Wed Jun 16, 2010 4:16 am
Posts: 2
Hi
I am working under NetBeans 6.9.RC2 under Win XP SP2
I try to run simple ejb application using Hibernate JPA as my persistence provider.
Unfortunatelly as I try to create entity manager factory I always get an error:
java.lang.NoClassDefFoundError: org/apache/log4j/Level
caused by ClassNotFoundException org/apache/log4j/Level
and followed from it:
java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration
Here is full stack trace: http://pastebin.com/gBneksfq

I put log4j1.2.16 into libraries folder in netbeans and also other libraries such as slf4j, hibernate required libs, jpa and my jdbc driver but it didn't make any difference.
I give you my project maybe you could find out what I am doing wrong.
http://forums.java.net/jive/servlet/Jiv ... /EAOne.zip


Top
 Profile  
 
 Post subject: Re: Problem with Hibernate JPA
PostPosted: Wed Jun 16, 2010 7:09 am 
Newbie

Joined: Wed Jun 16, 2010 4:16 am
Posts: 2
Thank you for a response. I put my log4j into glassfish/domain1/lib and everything is fine now. I also have some other question. I prepared my persistence.xml
http://pastebin.com/XH9vcXU1
which worked fine previously but now shows me an error
http://pastebin.com/UQb8peyx

Have you any idea ?


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.