After overriding the Application.getClasses() by a custom MessageBodyReader, methods on resource classes cannot be invoked

In a RESTEasy project running on Wildfly server, there is a resource class: @Path("/company") public class CompanyResource { @Inject CompanyService companyService; @PUT @Consumes(MediaType.APPLICATION_JSON) public void update(Company company) { companyService.update(company); } } Initially the REST API configuration class just extends Application without any extra @override on the existing methods of Application class. An http request, http://localhost:8080/workcontext/company,… Read More After overriding the Application.getClasses() by a custom MessageBodyReader, methods on resource classes cannot be invoked