You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by GitBox <gi...@apache.org> on 2021/10/13 15:48:47 UTC
[GitHub] [aries-jax-rs-whiteboard] timothyjward commented on a change in pull request #133: Further CXF lifecycle workarounds
timothyjward commented on a change in pull request #133:
URL: https://github.com/apache/aries-jax-rs-whiteboard/pull/133#discussion_r728209177
##########
File path: jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/client/ClientBuilderImpl.java
##########
@@ -19,9 +19,6 @@
import org.apache.aries.jax.rs.whiteboard.cxf.jaxrs.client.PromiseRxInvokerProviderImpl;
-import aQute.bnd.annotation.spi.ServiceProvider;
-
-@ServiceProvider(javax.ws.rs.client.ClientBuilder.class)
Review comment:
I get the same failure on the master branch without this PR. I don't think the failure is related to this change.
Without this change there is a catastrophic timing issue. If CXF isn't started when you try to access the Client (or SSE, or a few other things) then it tries to initialise the CXF HTTP stack and fails. This failure is cached and can only be cleared by restarting the framework, or refreshing all the CXF bundles.
The change doesn't remove service loader (which is necessary to make the static use work), just the service registration. By doing it manually Aries JAX-RS whiteboard can delay until the services are safe to use.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@aries.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org