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?