You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Hari Madhavan <ma...@gmail.com> on 2017/06/16 09:52:06 UTC

Rest webservices not deployed ( web:list shows deploying ) on karaf

Hi ,

We have an application that is built as a series of features. Earlier we
were deploying each feature individually and it was working fine. However
to make it simple to manage . we have defined a feature-of-features which
contains the application features, in the same order.  When we install this
parent feature, while all the features and bundles start - the rest
services ( running under jersey ) remains in deploying state and we get a
404 when we access the services.This does not happen all the time, but
quite often. Can someone give pointers on what could be causing this issue
and how we can analyze the root cause .

From the karaf log, there is a warning

2017-06-16 11:11:26,522 | INFO  | pool-78-thread-1 | PackagesResourceConfig
          | 246 - com.sun.jersey.jersey-server - 1.19.2 | Scanning for root
resource and provider classes in the packages:  ....agent.restful.api
2017-06-16 11:11:26,531 | INFO  | FelixStartLevel  | Activator
           | 92 - org.ops4j.pax.web.pax-web-extender-war - 4.2.6 |
Destroying extension for bundle ....agent.rna-restful-messaging-api
2017-06-16 11:11:26,540 | WARN  | pool-78-thread-1 |
rna-restful-messaging-api - 207} | 78 - org.eclipse.jetty.util -
9.2.15.v20160210 | unavailable
java.lang.IllegalStateException: Invalid BundleContext.

and the message for loading root resources does not appear ( as in the
successful log given below )

2017-06-16 11:31:05,460 | INFO  | pool-84-thread-1 | ScanningResourceConfig
          | 246 - com.sun.jersey.jersey-server - 1.19.2 | Root resource
classes found:
  class ....agent.restful.api.SetUserCertificateService
  class ....agent.restful.api.AddOrganisationService
  .........
  ........


Regards

-- 
Hari
9845147731