Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » error: Invalid content (no root node)
error: Invalid content (no root node) [message #617609] Wed, 16 September 2009 17:19
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Hi

I have an existing WTP java utility project. When I enable the JPA facet
with the Generic platform, no library configuration, automatically
discovering entities, and no orm.xml JPA Content doesn't pick up the
entities and the JPA Structure and JPA details views don't work. When I
validate the project I get the error "Invalid content (no root node)"
without any further information.

My persistence.xml looks like this:
<?xml version="1.0"?>

<persistence 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_1_0.xsd"
version="1.0">
<persistence-unit name="default">
<provider>org.hibernate.ejb.HibernatePersistence</provider >
</persistence-unit>
</persistence>

Cheers
Philippe
Previous Topic:Copied entities to another project, now I get an error message
Next Topic:optional property listener
Goto Forum:
  


Current Time: Tue Mar 19 07:28:28 GMT 2024

Powered by FUDForum. Page generated in 0.02060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top