Skip to content

Context refresh fails when using Actuator on Jersey without spring-boot-health#50858

Merged
wilkinsona merged 1 commit into
spring-projects:4.0.xfrom
dlwldnjs1009:gh-50794-jersey-health-absent
Jun 27, 2026
Merged

Context refresh fails when using Actuator on Jersey without spring-boot-health#50858
wilkinsona merged 1 commit into
spring-projects:4.0.xfrom
dlwldnjs1009:gh-50794-jersey-health-absent

Conversation

@dlwldnjs1009

Copy link
Copy Markdown
Contributor

See #50794.

Previously, JerseyWebEndpointManagementContextConfiguration failed to parse
when spring-boot-health was absent because the
jerseyDifferentPortAdditionalHealthEndpointPathsResourcesRegistrar @Bean
method referenced HealthEndpointGroups directly.

Changes

  • Move the additional health endpoint paths registrar into a nested HealthConfiguration
  • Make JerseyAdditionalHealthEndpointPathsManagementResourcesRegistrar static

Testing

  • JerseyWebEndpointManagementContextConfigurationTests.refreshSucceedsWithoutHealth
  • JerseyWebEndpointManagementContextConfigurationTests
  • :module:spring-boot-jersey:checkFormatMain
  • :module:spring-boot-jersey:checkFormatTest

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 24, 2026
@dlwldnjs1009 dlwldnjs1009 force-pushed the gh-50794-jersey-health-absent branch from 35f3baf to 576fc3f Compare June 25, 2026 01:46
@wilkinsona wilkinsona changed the title Avoid loading health classes in Jersey actuator configuration Context refresh fails when using Actuator on Jersey without spring-boot-health Jun 25, 2026
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 25, 2026
@wilkinsona wilkinsona added this to the 4.0.x milestone Jun 25, 2026
@wilkinsona wilkinsona self-assigned this Jun 27, 2026
Move the Jersey additional health endpoint paths registrar into a
health-specific configuration so Jersey management endpoint support can
refresh when spring-boot-health is absent.

See spring-projectsgh-50858

Signed-off-by: Lee JiWon <dlwldnjs1009@gmail.com>
@wilkinsona wilkinsona force-pushed the gh-50794-jersey-health-absent branch from 576fc3f to 9cfa980 Compare June 27, 2026 11:54
@wilkinsona wilkinsona changed the base branch from main to 4.0.x June 27, 2026 11:54
@wilkinsona wilkinsona modified the milestones: 4.0.x, 4.0.8 Jun 27, 2026
@wilkinsona wilkinsona merged commit 00fa8e0 into spring-projects:4.0.x Jun 27, 2026
4 checks passed
@wilkinsona

Copy link
Copy Markdown
Member

Thanks again, @dlwldnjs1009.

@dlwldnjs1009 dlwldnjs1009 deleted the gh-50794-jersey-health-absent branch July 4, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants