Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7490

JAX-RS REST server causes long bundle starting time in OSGi blueprint

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.1.8
    • None
    • JAX-RS, OSGi
    • None
    • Camel 2.18.1, Aries Blueprint 1.7.1, Karaf 4.0.9, Debian 3.16.39-1

    • Unknown

    Description

      I've encountered a weird problem when creating a REST server in blueprint.

      The bundle has nothing but a simple server that contains one service bean, configured like this:

      <jaxrs:server address="/test" id="testRestService">
      	<jaxrs:serviceBeans>
      		<ref component-id="defaultTestRestService" />
      	</jaxrs:serviceBeans>
      </jaxrs:server>
      
      <bean id="defaultTestRestService" class="de.maxdev.resttest.DefaultTestRestService" />
      

      When I deploy this bundle on Karaf in a Linux environment, the bundle remains in the "Starting" state for about 120 seconds. On Windows however, it starts in about 3 seconds. When not taking care of bundle deployment order, this will block all the other bundles, too.

      Is this a bug or a misconfiguration? Maybe this is caused some lower-level socket issue?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            maxdev Max Schlüssel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment