jersey
  1. jersey
  2. JERSEY-1706

ApplicationHandler is initialized twice for jdk-http server and simple-http + adjust port for simple-http tests.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-m13, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      In order to create ReloadContainerLifecycleListener in the containers the ApplicationHadnler is initialized twice. This also means that ReloadContainerLifecycleListener is based on providers from different ApplicationHandler.

      code:

          public static Closeable create(URI address, SSLContext context, ResourceConfig config)
                  throws ProcessingException {
              final SimpleContainer container = ContainerFactory.createContainer(SimpleContainer.class, config);
              return create(address, context, container, ConfigHelper.getContainerLifecycleListener(new ApplicationHandler(config)));
          }
      

      adjust port for simple-http tests (use correct env variable to setup port during tests).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Miroslav Fuksa
            Reporter:
            Miroslav Fuksa
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours
              4h
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 4 hours
              4h