facebook

jboss-app.xml validation error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #308135 Reply

    Ed Thompson
    Member

    I have a jboss-app.xml file for jboss 4.2 which looks to be perfectly valid:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss-app PUBLIC
        "-//JBoss//DTD J2EE Application 1.4//EN"
        "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
    <jboss-app>
      <module-order>strict</module-order>
    </jboss-app>
    

    However, Myeclipse 8.5 seems to not like it:

    
    The content of element type "jboss-app" must match "(security-domain?,unauthenticated-principal?,loader-repository?,jmx-name?,module*,security-role*)".
    

    However the DTD at http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd clearly shows:

    
    <!ELEMENT jboss-app (module-order?,security-domain?, unauthenticated-principal?,
     loader-repository?, jmx-name?, library-directory?, module*, security-role*)>
    

    Which is inconsistent with the error msg, which does not include the module-order element.

    Not real sure what this means myeclipse is validating against.
    Help?

    #308136 Reply

    Ed Thompson
    Member

    It’s SOMETHING in my environment, because a peer does not get that error, but for the life of me I don’t know what it is.

    #308218 Reply

    support-joy
    Member

    Edward,

    Can you send a sample project to reproduce at our end? Please send a mail to support@genuitec.com with sample project as attachment, add ATTN:Joy in the subject and include reference of this weblink in your mail. This will help in quick tracing.

    #308232 Reply

    Ed Thompson
    Member

    Sent.

    #308261 Reply

    support-joy
    Member

    Ed,

    Thank you. Received your email. I shall investigate and get back to you.

    #308323 Reply

    Brian Fernandes
    Moderator

    Ed,

    We have an internal XML catalog which is keyed off the Public ID –

    -//JBoss//DTD J2EE Application 1.4//EN

    Our catalog entry currently points to version 1.4.0 of the same DTD.

    To fix this, download the DTD from http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd into a stable location on your machine or place it in your workspace. Go to Window > Preferences > MyEclipse > XML > XML Catalog and click Add. In the location field, browse to the location of the file you just downloaded. Leave the key type at Public ID and specify the same key –

    -//JBoss//DTD J2EE Application 1.4//EN

    . Alternatively, you could change the key type to URI and specify

    http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd

    If you click OK, the DTD you specified should now take precedence over the internal DTD that we ship with MyEclipse.

    Hope this helps.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: jboss-app.xml validation error

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