Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2398

Netbeans 11 + web.xml = Cannot find declaration of element 'web-app'

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.0
    • Next
    • javaee - Web Project
    • None
    • Windows 10 64-Bit OpenJDK 11.0.2 (also tested with same results using Oracle JDK 8).

    Description

      I'm taking Netbeans 11 for a spin and now see my project web.xml file has red x in bottom corner of Projects window icon.  Everything seems to work fine despite the validation error.  If I open project in Netbeans 8.2 no issue.  The hover (tooltip) message is: 

       
      cvc-elt.1.a: Cannot find the declaration of element 'web-app'
       

      If I right click on web.xml file in Projects window and click Validate XML the error is displayed in the Output window along with:

      schema_reference.4: Failed to read schema document 'nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/web-app_3_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            slominskir Ryan
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment