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 226128

Summary: javax.persistence.Persistence
Product: javaee Reporter: rdg_software
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 7.2.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description rdg_software 2013-02-14 15:26:45 UTC
Product Version = NetBeans IDE 7.2.1 (Build 201210100934)
Operating System = Mac OS X version 10.6.8 running on x86_64
Java; VM; Vendor = 1.6.0_37
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.12-b01-434

java.lang.ClassNotFoundException: Will not load class javax.persistence.Persistence arbitrarily from one of ModuleCL@cc749e4[javax.persistence] and ModuleCL@1b0fb9bd[org.netbeans.modules.hibernatelib] starting from ModuleCL@1db5d2b2[it.rdg_software.scuola.api.implement]; see http://wiki.netbeans.org/DevFaqModuleCCE
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:244)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Comment 1 rdg_software 2013-02-14 15:27:09 UTC
Created attachment 131394 [details]
IDE log
Comment 2 rdg_software 2013-02-15 14:15:07 UTC
Same problem with the CRUD Customer Application if built on scratch fro the Netbeans Tutorial.
It seems impossible to view the persistence.xml.
The problem has born in the moment I did Clean and Build over the Netbeans Platform Application.
Before I was making changes on single modules and the Persistence Library did not any problem.
Everything seemed to function very well until tah moment of Clean and Build over the Netbeans Platform Application.
This was the reason I tried to built from the tutorial but after buiding the viewer component I got the same problem.
Thanks.
Comment 3 rdg_software 2013-02-16 19:30:27 UTC
Also changed the database driver PostgreSQL with the version useful in the Services tab to make the connection.
but with no result. The topcomponent can't be instantiated because the EntityManager do not find
the persistence library unit, it seems. I repeated the tutorial http://platform.netbeans.org/tutorials/nbm-crud.html#creating-entity
Comment 4 Sergey Petrov 2014-07-14 14:17:22 UTC
when I should try to clean/build to reproduce the issue?
Comment 5 Martin Balin 2016-07-07 08:53:38 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss