This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231529

Summary: NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration
Product: javaee Reporter: alied <alied>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 201327
Attachments: stacktrace

Description alied 2013-06-19 14:56:11 UTC
Build: NetBeans IDE Dev (Build 201306181109)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows 7

User Comments:
alied: Installed the latest dev build with a fresh userdir.
ran a simple query:
SELECT c from ChargeableAni c

Where ChargeableAni is a registered entity in Hibernate.

GUEST: JPQL Error




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration
   at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:55)
   at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
   at org.netbeans.modules.j2ee.persistence.jpqleditor.JPQLExecutor.execute(JPQLExecutor.java:131)
   at org.netbeans.modules.j2ee.persistence.jpqleditor.JPQLEditorController$2.run(JPQLEditorController.java:132)
Comment 1 alied 2013-06-19 14:56:13 UTC
Created attachment 136034 [details]
stacktrace
Comment 2 Jaroslav Tulach 2013-07-08 16:01:29 UTC
Can't load Log4J and causes failures in hibernate.
Comment 3 Sergey Petrov 2013-07-08 16:05:21 UTC
Please provide some useful information on how to create a project in order to reproduce the issue, thanks. I'm not able to reproduce if just create new project with hibernate provider.

*** This bug has been marked as a duplicate of bug 230196 ***