diff --git a/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java b/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java index fa1117a7e4..307f54f20d 100644 --- a/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java +++ b/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -92,6 +92,7 @@ protected void configure() { bindSingletonWorker(ByteArrayProvider.class); // bindSingletonWorker(DataSourceProvider.class); bindSingletonWorker(FileProvider.class); + bindSingletonWorker(PathProvider.class); bindSingletonWorker(FormMultivaluedMapProvider.class); bindSingletonWorker(FormProvider.class); bindSingletonWorker(InputStreamProvider.class); diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java index 2a8f1990f4..9e872fc6d6 100644 --- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java +++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java @@ -326,13 +326,13 @@ public JaxbBean post(final JaxbBeanType t) { @Override protected Application configure() { - return ((ResourceConfig) super.configure()).register(new JettisonFeature()).register(new PathProvider()); + return ((ResourceConfig) super.configure()).register(new JettisonFeature()); } @Override protected void configureClient(final ClientConfig config) { super.configureClient(config); - config.register(new JettisonFeature()).register(new PathProvider()); + config.register(new JettisonFeature()); } @Test