facebook

[Closed] Why am I getting errors with this XML?

💡
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 Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266139 Reply

    Tony Herstell
    Participant

    Why am I getting errors on this xml?

    Severity and Description Path Resource Location Creation Time Id
    The content of element type “pages” must match “(page)*”. risingstars_war/WebRoot/WEB-INF pages.xml line 5 1171503340268 6612

    pages, according to the DTD is not just pages but:
    <!ELEMENT pages (page*,exception*)>

    The content of element type “redirect” must match “(param)*”. risingstars_war/WebRoot/WEB-INF pages.xml line 34 1171503340268 6610
    The content of element type “redirect” must match “(param)*”. risingstars_war/WebRoot/WEB-INF pages.xml line 41 1171503340268 6611

    redirect allows:
    <!ELEMENT redirect (message?,param*)>
    <!ATTLIST redirect view-id CDATA #IMPLIED>

    How do I force MyEclipse to re-read the DTD?

    
    <!DOCTYPE pages PUBLIC
              "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
              "http://jboss.com/products/seam/pages-1.1.dtd">
    
    <pages no-conversation-view-id="/mainmenu.xhtml">
        <page view-id="/userCRUD.xhtml" timeout="300000">
            Reason: #{cRUDUserController.mode} User ( #{user.username} )
        </page>
        <page view-id="/userConfirm.xhtml" timeout="300000">
            Reason: Confirm #{cRUDUserController.mode} User
            (#{user.username} )
        </page>
        <page view-id="/userRegistration.xhtml" timeout="300000">
            Reason: Registration of new User
        </page>
    
        <page view-id="/organisationCRUD.xhtml" timeout="300000">
            Reason: #{cRUDOrganisationController.mode} Organisation (
            #{organisation.name} )
        </page>
        <page view-id="/organisationConfirm.xhtml" timeout="300000">
            Reason: Confirm #{cRUDOrganisationController.mode} Organisation
            (#{organisation.name} )
        </page>
    
        <page view-id="/upload.xhtml" timeout="300000">
            Reason: Upload Image
        </page>
    
        <!--  Security -->
    
        <exception class="org.jboss.seam.security.NotLoggedInException">
            <end-conversation />
            <redirect view-id="/userRegistration.xhtml">
                <message>You must be a member to use this feature</message>
            </redirect>
        </exception>
    
        <exception class="org.jboss.seam.security.AuthorizationException">
            <end-conversation />
            <redirect view-id="/securityError.xhtml">
                <message>You do not have permission to do this</message>
            </redirect>
        </exception>
    
    
        <page view-id="/userRegistration.xhtml">
            <restrict>#{!identity.loggedIn}</restrict>
        </page>
    
        <page view-id="/userFind.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
        <page view-id="/userCRUD.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
        <page view-id="/userConfirm.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
    
        <page view-id="/organisationFind.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
        <page view-id="/organisationCRUD.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
        <page view-id="/organisationConfirm.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
    
        <page view-id="/upload.xhtml">
            <restrict>#{identity.loggedIn}</restrict>
        </page>
    
    
        <page view-id="/template.xhtml">
            <restrict />
        </page>
        <page view-id="/conversations.xhtml">
            <restrict />
        </page>
        <page view-id="/organisationFieldsEditable.xhtml">
            <restrict />
        </page>
        <page view-id="/organisationFieldsNonEditable.xhtml">
            <restrict />
        </page>
        <page view-id="/organisationsSortablePagedDataTable.xhtml">
            <restrict />
        </page>
    
        <page view-id="/userFieldsEditable.xhtml">
            <restrict />
        </page>
        <page view-id="/userFieldsNonEditable.xhtml">
            <restrict />
        </page>
        <page view-id="/usersSortablePagedDataTable.xhtml">
            <restrict />
        </page>
    </pages>
    
    #266263

    Tony Herstell
    Participant

    Ignore this..
    I dont know how I do it but finally I get MyEclipse to refresh its cache of DTD’s.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Why am I getting errors with this XML?

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