Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JOnAS 5.3.0 M3
    • Component/s: OSGi Framework
    • Labels:
      None

      Description

      When registering resource/servlet, each time a new OSGIContext is created.
      So if a servlet is regristred on /myapp/servlet1, it doesn't share context with another servlet registred on /myapp/servlet2

      1. JonasTomcatOSGi.patch
        13 kB
        Diorcet Yann
      2. JonasTomcatOSGi2.patch
        13 kB
        Diorcet Yann

        Activity

        Hide
        Guillaume Sauthier added a comment -

        Yes, this is how it works ATM.
        With HttpService there is no such thing as a web application, only individual Servlets.
        So that makes sense to not share a Context between OSGi Servlets.

        The other way is to have 1 Context for all your Servlets.
        That will ends up with /osgi prefixing all of the Servlet's URL...

        Show
        Guillaume Sauthier added a comment - Yes, this is how it works ATM. With HttpService there is no such thing as a web application, only individual Servlets. So that makes sense to not share a Context between OSGi Servlets. The other way is to have 1 Context for all your Servlets. That will ends up with /osgi prefixing all of the Servlet's URL...
        Hide
        Diorcet Yann added a comment -

        An solution to the issue: first part of the URL is an context
        Q: registerServlet and unregister don't have to be synchronized?

        Show
        Diorcet Yann added a comment - An solution to the issue: first part of the URL is an context Q: registerServlet and unregister don't have to be synchronized?
        Hide
        Diorcet Yann added a comment -

        Synchronized servlet list

        Show
        Diorcet Yann added a comment - Synchronized servlet list
        Hide
        Florent Benoit added a comment -

        Path applied with slight changes on Tomcat6 and reported on Tomcat7

        Show
        Florent Benoit added a comment - Path applied with slight changes on Tomcat6 and reported on Tomcat7

          People

          • Assignee:
            Florent Benoit
            Reporter:
            Diorcet Yann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development