Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321598 - persistence.xml - error validation message
Summary: persistence.xml - error validation message
Status: RESOLVED INVALID
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 10:18 EDT by Jiri Peterka CLA
Modified: 2011-04-07 17:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Peterka CLA 2010-08-03 10:18:36 EDT
Build Identifier: v201007300621N

After JPA 2.0 there is an error:

Description	Resource	Path	Location	Type
The persistence.xml file does not have supported content for this JPA platform.	persistence.xml	/jpatest/src/META-INF	 	Validation Message

persistence.xml content:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.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://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
	<persistence-unit name="jpatest">
	</persistence-unit>
</persistence>

My guess is there is no reason for this error

Reproducible: Always

Steps to Reproduce:
1.New JPA Project
2.Minimal JPA 2.0 configuration
3.Next, Next
4.Platform: Hibernate JPA 2.0
5.Connection: DefaultDS
6.Finish
7. Open persistence.xml (marked as file with error)
Comment 1 Neil Hauge CLA 2010-08-03 10:54:27 EDT
Is there anything in your Error Log that might be related?
Comment 2 Neil Hauge CLA 2011-04-07 17:18:37 EDT
Marking invalid for now until more info can be gathered.