[AAA-175] Jersey does not start when multiple features are loaded Created: 12/Apr/18  Updated: 04/Jul/18  Resolved: 16/Apr/18

Status: Verified
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: Oxygen

Type: Bug Priority: Highest
Reporter: Luis Gomez Assignee: Stephen Kitt
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Jersey does not start and you can see following line is missing in the karaf.log:

2018-04-10T18:43:26,196 | INFO | paxweb-extender-2-thread-1 | WebApplicationImpl | 41 - com.sun.jersey.jersey-server - 1.19.4 | Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'

The issue is visible in distribution-check (see red builds):

https://jenkins.opendaylight.org/releng/view/genius/job/genius-distribution-check-oxygen/

As well as in CSIT -all test (see regression):

https://jenkins.opendaylight.org/releng/view/openflowplugin-oxygen/job/openflowplugin-csit-1node-flow-services-all-oxygen/

Regression started with recent upstream migration but at this moment there is no guarantee but just high probability this is the cause.

To reproduce:

1) Download or build latest stable/oxygen distribution
2) Edit org.apache.karaf.features.cfg to add test repo: mvn:org.opendaylight.integration/features-test/0.8.1-SNAPSHOT/xml/features and feature: odl-integration-compatible-with-all
3) Start the distribution

After a while all bundles are up but jersey instances for shiro, restconf, apidocs and neutron are not so REST interface is unusable.

I tried different combination of features to mitigate the issue and although some combinations avoid the issue there is no clear pattern or single feature to blame. Another thing to notice is that the above steps work for me if instead of installing feature via config file I install via karaf CLI which means karaf itself can be part of the problem too.



 Comments   
Comment by Stephen Kitt [ 16/Apr/18 ]

This is fixed by https://git.opendaylight.org/gerrit/70979 in my tests.

Comment by Luis Gomez [ 16/Apr/18 ]

Fix works.

Generated at Wed Feb 07 19:08:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.