|
Re: EJB3 project errors and perisistence context editor parse errors [message #207477 is a reply to message #207469] |
Sat, 26 January 2008 14:19 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
> 1. A number of times when I create an EJB project and specify the
> peristence facet - the project gets created but the builder reports an
> error on any persistence file i edit and save
>
> example ..
>
> <?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://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> <persistence-unit name="embedDS" transaction-type="JTA">
> <provider>org.hibernate.ejb.HibernatePersistence</provider >
> <jta-data-source>jdbc/embedDS</jta-data-source> <properties>
> <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
> <property name="hibernate.show_sql" value="true"/>
> </properties>
> </persistence-unit>
> </persistence>
>
> this persistence file shows an error in eclipse at the first line saying
> "Invalid content [no root node]". whatever i do edit/overwrite save it
> says the same. However if i deploy the project to the jboss server it
> works and the persistence context can be used just fine -
> this happens in both callisto and ganymede.
Does this happen when it builder validates the file? As the normal XML
Editor validation had no problem with this file using WTP 2.0.1 and Europa.
|
|
|
|
Re: EJB3 project errors and perisistence context editor parse errors [message #207501 is a reply to message #207493] |
Sun, 27 January 2008 13:53 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Will Woodman wrote:
> David i have the project open in J2EE mode
> I am have shut down overnight and restarted - the parse error now doesnt
> show this morning -
> however the way to get it back is create a new EJB project and set
> persistence facet.
>
> then cut/paste the persistence.xml from another project - and paste into
> the new project - this then immediately runs the builder in background
> mode and it fails with the "Invalid content (no root node)" error
> however as mentioned if you run the new EJB project on the server it
> works okay.
>
> however i do note i keep getting an error quite regularly when i start
> up saying 'an internal error occurred when initialising "java
> tooling", java.lang.nullPointerException'
>
> I just got that now when i restarted eclipse and the new temp EJB
> project is still showing an error in the persistence.xml i just cut and
> pasted before i restarted. (i did this on my calisto build - however i
> get this error on the ganymede build also sometimes)
>
> also - I have problems with EAR files. I set up all the ear project
> entries that establish and establish the module dependencies. HOwever
> once i shutdown eclipse and restart it seems to randomly forget these
> settinga and I have to go into the EAR each time and restablish the lost
> dependencies in the EAR in order to get rid of a slew of errors in the
> builder not seeing the paths and the individual projects declaring they
> have no j2ee module dependencies until you do the manual fix -
> could this be related to the tooling error just mentioned ?
Will, since you seem to be able to produce this pretty consistently, I'm
going to recommend that you open a bug report against the WTP JEE
component. Put as much detail in the bug report, as it will help the
committers track it down.
Especially since you are able to reproduce this on both Ganymede and
Callisto.
http://bugs.eclipse.org/bugs
Dave
|
|
|
|
Powered by
FUDForum. Page generated in 0.04217 seconds