RESTEasy Client + NoSuchMethodError

前端 未结 2 1219
萌比男神i
萌比男神i 2020-12-01 18:39

I am trying to write simple RESTEasy client. Below given is sample code:

Client client = ClientBuilder.newBuilder().build();
WebTarget target = client.target         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 19:14

    This problems are thrown cause of different version of Resteasy Client implementation between your app and Jboss EAP modules. You are using the newest version of jaxrs-client, but JBoss EAP 6.3.0 use very old version (resteasy-jaxrs-2.3.8.Final-redhat-3).

    Just download latest pack of JBoss Resteasy implementation (sometking like this: resteasy-jboss-modules-3.0.9.Final.zip) and unzip into EAP Modules folder replacing existing files modules.xml and adding new jars. Remeber replace all JARS from the ZIP (not only resteasy-jaxrs).

提交回复
热议问题