Forums Register Login

Issue with Basic REST service

+Pie Number of slices to send: Send
(this issue is resolved. Problem was an old client jar file.)

Hello,

I have a simple RESTEasy service that, although it deploys, the service does not seem to work. My goal is to just return a simple Hello xml string.

The following client code:

String location = client.target("http://localhost:8080/sayhello/Hello").request().get(String.class);

returns:

Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.resteasy.spi.ResteasyProviderFactory.getClientResponseFilters()Lorg/jboss/resteasy/core/interception/ClientResponseFilterRegistry;


----

I'm confused by which method is the NoSuchMethodError since the code compiles fine and deploys under Tomcat and the index.jsp comes up OK.

Logs are clear of help here.

I'm therefore thinking the error above could be an issue with my very basic service.

My very basic REST service's internals are below.

Would appreciate any ideas what could be wrong.

Thanks in advance,

-mike

----------------------

Domain Package (not really a domain object yet...):


------

Services package:

GetHelloResource.java



------

HelloApplication.java



====
Maven POM.XML


Whose rules are you playing by? This tiny ad doesn't respect those rules:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1495 times.
Similar Threads
Maven dependencies
"No JTA UserTransaction available" errmsg thrown by Atomikos/JTA standalone app
modeshape
Error creating bean 'org.spring....PersistenceExceptionTranslationPostProcessor#0'
parent tag in Maven
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:46:30.