users@glassfish.java.net

RE: Problem with NoClassDefFoundError: org/apache/log4j/Level

From: Sigal Shaharabani <Sigal.Shaharabani_at_Teledata-Networks.com>
Date: Wed, 16 Jun 2010 11:57:21 +0300

Which glassfish are you working with?

P please consider the environment - do you really need to print this
email?

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Wednesday, June 16, 2010 9:25 AM
To: users_at_glassfish.dev.java.net
Subject: Problem with NoClassDefFoundError: org/apache/log4j/Level

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
and followed from it:
java.lang.NoClassDefFoundError: Could not initialize class
org.hibernate.ejb.Ejb3Configuration
I put log4j1.2.16 into libraries folder in netbeans and also other
libraries like slf4j, hibernate required libs, jpa and my jdbc driver
but it didn't make any difference. Here is my stack trace:
http://pastebin.com/gBneksfq

I give you my project maybe you could find out what I am doing wrong.
[Message sent by forum member 'glesiak']

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net