Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4623

ServletContext is application scoped even though several can exist in one .ear

    Details

      Description

      When creating an .ear project with multiple .war files, several servlet contexts will exist, but Seam registers only a single servlet context in the application scope. This application scoped servlet context is used a lot of places through the ServletLifecycle class.

      To reproduce, try the following:

      ServletContext servletLifecycleServletContext = ServletLifecycle.getCurrentServletContext();
      ServletContext facesContextServletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();

      This will return two different servlet contexts if called from the webapp that was not registered in application scope.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kasper.sorensen Kasper Sørensen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: