[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-803) Build error creating a new seam 2.0 project in RHDS Beta 1

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Mon Aug 20 12:20:01 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-803?page=all ]

Viacheslav Kabanovich resolved JBIDE-803.
-----------------------------------------

    Resolution: Done

1) it is an obsolete functionality that internal model sets problem markers about incorrect xml to resources - that is a job of XML Validator in Eclipse. So, I removed it, and it will not ever be a build problem if xmodel does not recognize something.
2) when internal model finds problems in xml, ui editor is disabled (excluding page with source) and displays problem. That is ok, but it can be not only a bad xml problem, but also a limitation of internal model implementation. In this case, message 'Unallowed child/attribute... ' was somewhat misleading, I changed it to 'Editor model does not support...' so that user can see that it is not his fault but editor limitation (bug).
3) Internal model limitations related to components.xml of version 2.0 are covered by JBIDE-789, which is now in progress. By now, persistence:managed-persistence-context is handled by the model.




> Build error creating a new seam 2.0 project in RHDS Beta 1
> ----------------------------------------------------------
>
>                 Key: JBIDE-803
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-803
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: JBoss Tools Core
>    Affects Versions: 2.0.0.Beta3
>         Environment: Windows XP SP2.  Redhat Dev Studio Beta1, Seam 2.0, JDK 1.5.0.9
>            Reporter: Gary Pinkham
>         Assigned To: Viacheslav Kabanovich
>            Priority: Minor
>
> Creating a new seam project using Seam 2.0 and Redhat Dev Studio Beta 1 creates a Component.XML with the following error:
> ERROR: 0.0 Unallowed child null:managed-persistence-context of components 
> The error shows in the tree view in the Redhat XML Editor and in the Problems tab as it causes a build error.   Modifying the Component.xml file (adding in entity-manager-factory="" to the "persistence:managed-persistence-context" tag and saving causes the build error to go away but the error still shows on the Tree view tab.    I removed the entity-manager-factory="" from the file and re-saved.    Build still works.   If I reopen the file in Tree view mode the build error returns.  

-- 
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