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 90376

Summary: 'Java Persistence in a Web-only' sample has an invalid persistence.xml
Product: obsolete Reporter: Erno Mononen <emononen>
Component: blueprintsAssignee: Nitya Doraisamy <nityad>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Erno Mononen 2006-11-30 18:14:30 UTC
The "Using Java Persistence in a Web-only application" sample project has an 
invalid persistence.xml and therefore it is not being recognized correctly. 
Please see issue 90305 for more information on what kind of issues it causes.

The declaration should be as follows:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/
/java.sun.com/xml/ns/persistence http://jav
a.sun.com/xml/ns/persistence/persistence_1_0.xsd">
Comment 1 Nitya Doraisamy 2007-07-26 19:19:54 UTC
Update web only app with correct persistence.xml and updated sun-resources.xml
Comment 2 Nitya Doraisamy 2007-07-27 05:09:43 UTC
Fixed web-only BluePrint app in java.net repository.
Also updated *.sun-resource to sun-resources.xml

Will mark issue fixed when BluePrints module drop is made to NetBeans repository
Comment 3 Nitya Doraisamy 2007-07-27 10:27:45 UTC
Updated BluePrints module drop done
http://deadlock.netbeans.org/fisheye/changelog/netbeans?cs=MAIN:nityad:20070727081828