Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12764

web.xml is validated also after comment it out

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.0.CR1
    • 4.0.0.Alpha2
    • webservices
    • None
    • Hide

      STEP: create a project with JAX-RS support
      STEP: create a Application class:

      @ApplicationPath("/rest")
      public class A extends Application {
      	 
      }
      

      STEP: insert application definition into web.xml as well:

      <servlet-mapping>
         <servlet-name>javax.ws.rs.core.Application</servlet-name>
         <url-pattern>/hello/*</url-pattern>
      </servlet-mapping>
      

      ASSERT: there should be validation warning
      STEP: comment servlet mapping out in web.xml
      ASSERT: definition in web.xml should be not taken into account when validating the project, so there should be no validation warning
      FAIL: there is still validation warning (comment servlet mapping out doesn't affect JAX-RS validator)

      Show
      STEP: create a project with JAX-RS support STEP: create a Application class: @ApplicationPath( "/ rest " ) public class A extends Application { } STEP: insert application definition into web.xml as well: <servlet-mapping> <servlet-name>javax.ws.rs.core.Application</servlet-name> <url-pattern>/hello/*</url-pattern> </servlet-mapping> ASSERT: there should be validation warning STEP: comment servlet mapping out in web.xml ASSERT: definition in web.xml should be not taken into account when validating the project, so there should be no validation warning FAIL: there is still validation warning (comment servlet mapping out doesn't affect JAX-RS validator)

    Attachments

      Issue Links

        Activity

          People

            xcoulon@redhat.com Xavier Coulon
            jjankovi Jaroslav Jankovič (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: