Spring-cloud-netflix: Upgrade to Eureka 1.6.0

Created on 15 Sep 2016  路  13Comments  路  Source: spring-cloud/spring-cloud-netflix

Most helpful comment

@spencergibb Any chance on upgrading to 1.6 to resolve https://github.com/Netflix/eureka/issues/600

All 13 comments

@spencergibb Any chance on upgrading to 1.6 to resolve https://github.com/Netflix/eureka/issues/600

Yes, 1.6 upgrade is critical for jersey based projects

latest application servers , weblogic v12.2.1 and Websphere V9.0 both removed JAX-RS1.1 support
Spring cloud netflix deployments to both servers fails.

upgrade to 1.6 is strongly needed.

@spencergibb : spencer kindly tell us your opinion about this ?

I dont see why we couldnt go to 1.6

Since this is targeted for Dalston, I'm ok with it. Also, just upgrading to 1.6.0 won't automatically mean that jersey 2 is supported. There is work that needs to be done.

@spencergibb : question please , Dalstone will be compatible with spring boot 1.4.1 or it targeting 1.5 ?

Dalston will be compatible with 1.4.x and 1.5.x

While testing this I do not see how I tell DiscoveryClient to Jersey 2. The DiscoveryClient constructors taking DiscoveryClientOptionalArgs are deprecated.

I get this error:

Caused by: java.lang.NoClassDefFoundError: com/sun/jersey/api/client/Client
at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:48)
at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:454)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:392)
... 51 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.sun.jersey.api.client.Client
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

I have excluded Jersey 1.x as the project already included Jersey 2. Excludes:
jsr311-api
jersey-core
jersey-client
jersey-apache-client4

Does Eureka have a property where I can set the client?

Also, just upgrading to 1.6.0 won't automatically mean that jersey 2 is supported. There is work that needs to be done.

@spencergibb : by work needs to be done you mean dependencies management our side like what @ErikLundJensen was trying to do or what ?

@adoura Unknown. I just know that without doing some work on our side, it will not work. Follow #846 for updates

Was this page helpful?
0 / 5 - 0 ratings