[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2087) Creating a Seam2 project w/ JPA facet creates an XML with an error of "no root node"

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Wed Apr 23 21:51:08 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-2087?page=comments#action_12410423 ] 
            
Snjezana Peco commented on JBIDE-2087:
--------------------------------------

The cause of the issue described in this jira is the order of creating facets in the project.
If the JPA facet is created before the Seam facet, JPA creates persistence.xml and orm.xml in the src/META-INF directory.
After that, the Seam facet creates its persistence.xml in the src/model/META-INF directory and changes the classpath what confuses JPA that shows a message for a non-existing error.
This can be fixed manually by removing, adding the JPA facet and removing the src/META-INF directory.
I have fixed this issue in my tree in the way that the Seam facet is created before creating the JPA facet. JPA recognizes persistence.xml in the src/model/META-INF directory and creates orm.xml in this directory. The src/META-INF isn't created in this case.


> Creating a Seam2 project w/ JPA facet creates an XML with an error of "no root node"
> ------------------------------------------------------------------------------------
>
>                 Key: JBIDE-2087
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-2087
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml source editing
>    Affects Versions: 2.1.0.beta1
>         Environment: Windows Vista, JBossTools 2.1.0.Beta1
>            Reporter: Marshall Culpepper
>         Assigned To: Snjezana Peco
>             Fix For: LATER
>
>         Attachments: persistencexmlerror.png
>
>
> 1. Go into the Seam Web Project wizard
> 2. Check the Seam2 Configuration
> 3. On the Facet page, check the Java Persistence facet.
> 4. Continue to the end of the wizard.
> 5. In the created project, the generated persistence.xml (src/model/META-INF/persistence.xml) will have the following error on it:
> Invalid content (no root node)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list