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 - 'Java Persistence in a Web-only' sample has an invalid persistence.xml
Summary: 'Java Persistence in a Web-only' sample has an invalid persistence.xml
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: blueprints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-30 18:14 UTC by Erno Mononen
Modified: 2013-02-13 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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