Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x silence jersey warnings #9613

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

barchetta
Copy link
Member

@barchetta barchetta commented Dec 19, 2024

Description

Fix #9019

This configures Jersey to:

  • Disable the WADL feature. With this we can remove setting log level for org.glassfish.jersey.server.wadl.
  • Disable DATASOURCE default provider

This silences warnings we were getting from Jersey at startup.

To allow user's to use these features in Jersey we do the following:

  1. If CommonProperties.PROVIDER_DEFAULT_DISABLE or ServerProperties.WADL_FEATURE_DISABLE is set in ResourceConfig then we don't configure that property (we let user's settings take precedence).
  2. If jersey.config.server.disableDataSourceProvider (system property or config property) is set to false, then we don't disable DATASOURCE default provider. This also allows us to pass the TCK.

@barchetta barchetta added 4.x Version 4.x jersey labels Dec 19, 2024
@barchetta barchetta self-assigned this Dec 19, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 19, 2024
@barchetta barchetta changed the title 4.x jersey warnings 4.x silence jersey warnings Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x jersey OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x: Get rid of WARNINGs when starting quickstart
2 participants