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 #486197] Wed, 16 September 2009 17:19 Go to next message
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
Re: error: Invalid content (no root node) [message #486419 is a reply to message #486197] Thu, 17 September 2009 14:43 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
Is this persistence.xml created as part of the facet enablement? Or is
the persistence.xml already in the project when you enable JPA?
Re: error: Invalid content (no root node) [message #486698 is a reply to message #486419] Fri, 18 September 2009 15:35 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Fullbright wrote:
> Is this persistence.xml created as part of the facet enablement? Or is
> the persistence.xml already in the project when you enable JPA?
>

It was already present before I enabled JPA.

Cheers
Philippe
Re: error: Invalid content (no root node) [message #487615 is a reply to message #486698] Wed, 23 September 2009 18:13 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
Apologies, Philippe, I have not had the opportunity to look at this issue yet. Could you please enter a bug and attach the information you've already provided?

Thanks,
- Paul
Re: error: Invalid content (no root node) [message #488910 is a reply to message #487615] Wed, 30 September 2009 16:41 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Fullbright wrote:
> Apologies, Philippe, I have not had the opportunity to look at this
> issue yet. Could you please enter a bug and attach the information
> you've already provided?

Done:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290929

Cheers
Philippe
Re: error: Invalid content (no root node) [message #514608 is a reply to message #488910] Mon, 15 February 2010 23:05 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

Philippe Marschall wrote on Wed, 30 September 2009 12:41
Paul Fullbright wrote:
> Apologies, Philippe, I have not had the opportunity to look at this
> issue yet. Could you please enter a bug and attach the information
> you've already provided?

Done:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290929

Cheers
Philippe


I'm also having this problem, using Eclipse 3.5.1 / SpringSource Tool Suite 2.3.0.
Re: error: Invalid content (no root node) [message #617611 is a reply to message #486197] Thu, 17 September 2009 14:43 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
Is this persistence.xml created as part of the facet enablement? Or is
the persistence.xml already in the project when you enable JPA?
Re: error: Invalid content (no root node) [message #617612 is a reply to message #486419] Fri, 18 September 2009 15:35 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Fullbright wrote:
> Is this persistence.xml created as part of the facet enablement? Or is
> the persistence.xml already in the project when you enable JPA?
>

It was already present before I enabled JPA.

Cheers
Philippe
Re: error: Invalid content (no root node) [message #617614 is a reply to message #486698] Wed, 23 September 2009 18:13 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
Apologies, Philippe, I have not had the opportunity to look at this issue yet. Could you please enter a bug and attach the information you've already provided?

Thanks,
- Paul
Re: error: Invalid content (no root node) [message #617620 is a reply to message #617614] Wed, 30 September 2009 16:41 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Fullbright wrote:
> Apologies, Philippe, I have not had the opportunity to look at this
> issue yet. Could you please enter a bug and attach the information
> you've already provided?

Done:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290929

Cheers
Philippe
Re: error: Invalid content (no root node) [message #618857 is a reply to message #488910] Mon, 15 February 2010 23:05 Go to previous message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

Philippe Marschall wrote on Wed, 30 September 2009 12:41
> Paul Fullbright wrote:
> > Apologies, Philippe, I have not had the opportunity to look at this
> > issue yet. Could you please enter a bug and attach the information
> > you've already provided?
>
> Done:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=290929
>
> Cheers
> Philippe


I'm also having this problem, using Eclipse 3.5.1 / SpringSource Tool Suite 2.3.0.
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 05:40:20 GMT 2024

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

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

Back to the top