java - spring cloud netflix jersey version conflict -


hello have spring boot application using

    <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-jersey</artifactid>     </dependency> 

this dependent on jersey version 2.7.

when trying use

<dependency>     <groupid>org.springframework.cloud</groupid>     <artifactid>spring-cloud-starter-eureka</artifactid> </dependency> 

that internally uses jersey version 1.1, application fails given 2 different versions of same library.

any advice in how fix issue, have tried use version 2.7 seems not compatible each-other

thanks

java.lang.nosuchmethoderror: javax.ws.rs.core.application.getproperties()ljava/util/map; @ org.glassfish.jersey.server.applicationhandler.(applicationhandler.java:303) @ org.glassfish.jersey.server.applicationhandler.(applicationhandler.java:284) @ org.glassfish.jersey.servlet.webcomponent.(webcomponent.java:311) @ org.glassfish.jersey.servlet.servletcontainer.init(servletcontainer.java:168) @ org.glassfish.jersey.servlet.servletcontainer.init(servletcontainer.java:358) @ javax.servlet.genericservlet.init(genericservlet.java:158) @ io.undertow.servlet.core.lifecyleinterceptorinvocation.proceed(lifecyleinterceptorinvocation.java:117) @ io.undertow.servlet.core.managedservlet$defaultinstancestrategy.start(managedservlet.java:220) @ io.undertow.servlet.core.managedservlet.getservlet(managedservlet.java:163) @ io.undertow.servlet.handlers.servlethandler.handlerequest(servlethandler.java:84) @ io.undertow.servlet.handlers.filterhandler.handlerequest(filterhandler.java:82)

i have gotten setup jersey 2 , eureka client through spring cloud work specifying following:

    <plugin>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-maven-plugin</artifactid>         <configuration>             <excludes>                 <exclude>                     <groupid>javax.ws.rs</groupid>                     <artifactid>jsr311-api</artifactid>                 </exclude>             </excludes>         </configuration>     </plugin> 

the problem though tests not running yet. still trying find full solution problem.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -