Details

      Description

      Right now there is no support for Servlet 3 spec. (section 8.1) annotations, like:

      • @WebServlet
      • @WebFilter
      • @WebInitParam
      • @WebListener

      Steps to reproduce:

      1. Deploy attached WAR into Liferay 7. This WAR contains a servlet, filter and event listener using annotations instead of adding them in web.xml
      2. Go to http://localhost:8080/o/com.lps65793.sample-1.0-SNAPSHOT/foo

      Expected results: You would see this text in page:

      Annotated Servlet works!
      
      Annotated filter works!
      
      Annotated listener works!
      

      Actual results: You will see a "404 not found" error or you won't see the three text lines pointing that servlet, filter and listener are working.

        Attachments

        1. 7.0.png
          7.0.png
          36 kB
        2. com.lps65793.sample.zip
          12 kB
        3. com.lps65793.sample-1.0-SNAPSHOT.war
          4.31 MB
        4. master.jpg
          master.jpg
          32 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 1 week, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP8
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  Master