Restful resteasy - Client (ava.lang.NoSuchMethodError)

1

I'm trying to access a WebService

Code:

public void testeWSRestful() {
    Client client = ClientBuilder.newBuilder().build();
    WebTarget target = client.target("http://localhost:8080/teste");
    Response response = target.request().get();
}

And the following is happening

Error:

  

java.lang.NoSuchMethodError: org.jboss.resteasy.spi.ResteasyProviderFactory (Lorg / jboss / resteasy / spi / ResteasyProviderFactory;) V: org.jboss.interceptor.proxy.InterceptorException: java.lang.NoSuchMethodError: org .jboss.esteasy.spi.ResteasyProviderFactory. (Lorg / jboss / resteasy / spi / ResteasyProviderFactory;) V

Maven:

<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-client</artifactId>
    <version>3.0.9.Final</version>
</dependency>
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-jaxb-provider</artifactId>
    <version>3.0.9.Final</version>
</dependency>
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-jaxrs</artifactId>
    <version>3.0.9.Final</version>
</dependency>

Can anyone tell me what's missing, or where is the error?

    
asked by anonymous 21.08.2015 / 20:24

0 answers