eclipse-ee4j / eclipse-ee4j/jersey

osgi-http-service example doesn't register servlets

Open
#4,066 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

hi

I have deployed the osgi-http-servlet example into Glassfish 5 (paraya-5.184)

The bundle starts - I get "STARTING HTTP SERVICE BUNDLE"

At this point I was expecting the Servlets to get registered and the "/status" jersey resource to be available - presumably (from the code) via "/jersey-http-service/status".

However - the servlets never get registered. From looking at the code the registration appears to depend on adding a service to the tracker (ServiceTracker.addingService) but this is never called.

Am I missing something? Is there something extra that StatusResource needs to do to call the private ServiceTracker in Activator to trigger this?

Alternatively how would I create an instance of HttpService to allow registerServlet to be called directly?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.