Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.3K
Views
No se puede instanciar el tipo ResteasyClientBuilder

Estoy tratando de construir un cliente Resteasy simple, usando un marco de proxy. Recibo un error, "No se puede crear una instancia del tipo ResteasyClientBuilder". Esta es la clase Cliente.

 package com.RestClient.Clients; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriBuilder; import org.jboss.resteasy.client.jaxrs.ResteasyClient; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget; import com.RestClient.Models.Student; public class ClientClass { ResteasyClient client; ResteasyWebTarget base_target,student_target; ClientInterface proxy; public ClientClass() { client = new ResteasyClientBuilder().build();<---------error base_target = client.target(UriBuilder.fromPath("http://localhost:8080/demorest/webresources/")); student_target = base_target.path("students"); } public int registerStudent(Student s) { Response res = proxy.createStudent(s); return res.getStatus(); } }

Estaba siguiendo este tutorial.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

La versión 4.0.0 de RestEasy Client convirtió a ResteasyClientBuilder en una clase abstracta y proporcionó ResteasyClientBuilderImpl como la implementación real que está buscando.

Pero debería usar el nuevo builder al generar un cliente.

 client = ClientBuilder.newBuilder().build(); base_target = client.target("http://localhost:8080/demorest/webresources/");
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!