[ https://issues.apache.org/jira/browse/ARIES-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397422#comment-16397422 ]
Carlos Sierra commented on ARIES-1789: -------------------------------------- Hi Stefan, support for SSE has just been added. as [~timothyjward] has commented, you need to get the _SseEventSourceFactory_ and _ClientBuilder_ from the service registry in order to use it. Let us know how it works for you or if you have any other problems. Bests. Carlos. > ClientBuilder and SSE > --------------------- > > Key: ARIES-1789 > URL: https://issues.apache.org/jira/browse/ARIES-1789 > Project: Aries > Issue Type: Bug > Components: jax-rs-whiteboard > Affects Versions: jax-rs-whiteboard-1.0.0 > Reporter: Stefan Bischof > Priority: Major > > Hi, > when using: > clientBuilder.newBuilder(); > i got a > > {code:java} > java.lang.ClassNotFoundException: > org.glassfish.jersey.client.JerseyClientBuilder not found by > org.apache.aries.javax.jax.rs-api > or > java.lang.ClassNotFoundException: > org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder not > found by org.apache.aries.javax.jax.rs-api [7] > at > javax.ws.rs.sse.SseEventSource$Builder.newBuilder(SseEventSource.java:153) > at javax.ws.rs.sse.SseEventSource.target(SseEventSource.java:238) > at de.jena.servicehub.phone.demo.DemoSseClient.test(DemoSseClient.java:38) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:136) > at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:91) > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) > at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.ClassNotFoundException: > org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder not > found by org.apache.aries.javax.jax.rs-api [7] > at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639{code} > > Both builders uses defaultClassNames > > {code:java} > javax.ws.rs.client.ClientBuilder > JAXRS_DEFAULT_CLIENT_BUILDER = > "org.glassfish.jersey.client.JerseyClientBuilder"; > > javax.ws.rs.sse.SseEventSource.Builder > String JAXRS_DEFAULT_SSE_BUILDER = > "org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder"; > {code} > Both calls > javax.ws.rs.client.FactoryFinder.find(..) > and tryes to get the Object over > -ServiceLoader > -java.home/jaxrs.properties > -SystemPropertys > -Class.forName(defaultclassName); > 1. is there any was to use .newBuilder? > 2. is ther eny way to @Reference SseEventSource? > 3. is there any handling of serverside events in Aries Whiteboard or is it > necessary to register the SseFeature of(cxf/jersy) by myselfe? > -- This message was sent by Atlassian JIRA (v7.6.3#76005)