facebook

assembly-descriptor.xml errors

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #212471 Reply

    Erez
    Member

    I am using the “assembly-descriptor.xml” with XDoclet and the
    subtask deploymentdescriptor to generate the ejb-jar.xml.

    The error I get on this file is

    “The markup in the document following the root element must be well-formed”

    According to the XDoclet docs:

    An XML unparsed entity containing security-role elements, to use instead of generating them from role-name parameters on ejb.permission, ejb.finder and ejb.pk tags.

        <!-- 
        security roles 
        -->
        <security-role>
            <description>
                customer users
            </description>
            <role-name>user</role-name>
        </security-role>
        
        <security-role>
            <description>
                System operator - member of the site's stuff
            </description>
            <role-name>sysop</role-name>
        </security-role>
    
        <security-role>
            <description>
                This role includes all system administrators who are 
                authorized to manage any part of the system.
            </description>
            <role-name>admin</role-name>
        </security-role>

    Thanks in advance,

    Erez

    #212496

    Scott Anderson
    Participant

    Erez,

    Well, the error is technically correct. Well-formed XML documents have a single root element that contains all others. The XDoclet team has chosen to go with an XML-like document that is not well-formed, thus causing the error marker you’re seeing. The XML validator simply validates the base XML and doesn’t know about XDoclet’s “special” design. Basically, you can safely ignore the marker. If it bothers you, you can turn off XML validation on that project and then use the MyEclipse context menu in the package explorer to validate single files on demand, if you like.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: assembly-descriptor.xml errors

You must be logged in to post in the forum log in