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

web.xml issue creating a webapp with java server faces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.0
    • Next
    • javaee - Web Project

    Description

      Steps to reproduce:

      1. Create a new "Maven / Web Application" project:
        • "Project Name": firstcup
        • "Server": GlassFish Server 5.0
        • "Java EE Version": Java EE 7 Web
        • "Context Path": /firstcup
      2. After the project is created, invoke pop-up menu on it's root node and select Properties.
      3. Select the "Frameworks" category in the "Project Properties" manager.
      4. Push the Add... button and choose "JavaServer Faces" framework.
      5. In "Configuration" tab, set "JSF Servlet URL Pattern" to: /firstcupWeb/ and push *OK.
      6. Delete generated web pages.

      Expected result:

      • The project is created and no errors are displayed

      Actual result:

      • In the project panel the file Web pages > WEB-INF > web.xml is marked with a red x. On mouse hover the following message is shown "cvc-elt.1.a: Cannot find the declaration of element 'web-app'. "

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gtino <DELETED>
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h