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 229347 - Unable to create hibernate mapping classes
Summary: Unable to create hibernate mapping classes
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-04 15:56 UTC by Maksim Khramov
Modified: 2013-05-09 02:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stacktrace (8.05 KB, text/plain)
2013-05-04 15:56 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2013-05-04 15:56:47 UTC
Created attachment 134103 [details]
exception stacktrace

Product Version: NetBeans IDE Dev (Build 201305032300)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11

Steps to reproduce:
Create new web project with hibernate support with default bundled derby database.
Create hibernate.reveng.xml file
Open wizard to create mapping files.
Wizard shows an error: 
Hibernate configuration fails with message: Unable to get the default Bean Validation factory see message.log for exception details.

See exception stacktrace in attachment
Comment 1 Petr Jiricka 2013-05-06 15:56:30 UTC
This is 7.4 only, does not affect 7.3.1, right? Adding the 731-not-a-stopper whiteboard.
Comment 2 Sergey Petrov 2013-05-06 16:00:31 UTC
I'll reverify, there should be no changes in hibernate area in 7.3.1 but may be some changes in others and may affect this issue.
Comment 3 Sergey Petrov 2013-05-06 16:18:10 UTC
verified, not reproducible in 7.3.1
Comment 4 Sergey Petrov 2013-05-07 13:32:06 UTC
As a workaround, classes can be created in j2se. Also I see the issue is here for a long time, can't verify yet if it used to work after library update in web project.
Comment 5 Sergey Petrov 2013-05-08 09:28:21 UTC
disable javax.validation.* classes loading.
it;s not loaded in j2se and hibernate support do not handle ee specific feature, it should be ok to fix this way in my opinion and may be later review if validation can be enabled and what for it can be used (by nb functionality).
http://hg.netbeans.org/web-main/rev/cb5684b976dc
Comment 6 Quality Engineering 2013-05-09 02:36:16 UTC
Integrated into 'main-golden', will be available in build *201305082300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cb5684b976dc
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #229347 do not load javax.validation.* classes