HI,
I have a strange problem. I am running a timer service in wildfly 13. This timer service is implemented as stateless EJB like this:
@Stateless public class SchedulerService { @Timeout void onTimeout(javax.ejb.Timer timer) throws Exception { Client client = ClientBuilder.newClient(); // throws exception ... } }
The call 'ClientBuilder.newClient()' result in the following exception:
org.jboss.resteasy.spi.LoggableFailure: RESTEASY003880: Unable to find contextual data of type: javax.servlet.ServletContext
I have them code in Glassfish (Jersey) running with not problems.
What does the exception exactly mean? And what can I do to get an instance of a javax.ws.rs.client.Client?
Thanks for any help
===
Ralph
After more testing I came to the conclusion, that the javax.ws.rs.client.Client implementation from Resteasy does not work in a EJB container because of the missing ServletContext / ServletConfig.