6 Replies Latest reply on Nov 28, 2017 8:34 AM by Hannes Bjurek

    Wildfly 11 /JAX-RS problems

    Hannes Bjurek Newbie

      Hi,

       

      We are trying to upgrade form Wildfly 10.1 to 11. Most things seems to work, however our JAX-RS services does not get registered. The jaxrs subsystem is loaded and we have a file looking likes this:

      @ApplicationPath("/api/")

      public class RestInit extends Application {

         private final static Logger log = Logger.getLogger(RestInit.class.getName());

        public RestInit() {

         log.info("Setting upp swagger...");
         BeanConfig beanConfig = new BeanConfig();
         beanConfig.setTitle("Title");
         beanConfig.setVersion("1.0");
         beanConfig.setSchemes(new String[]{"https"});
         beanConfig.setBasePath("/api/");
         beanConfig.setResourcePackage("com.company.yada");
         beanConfig.setScan(true);
         }

       

         @Override
         public Set<Class<?>> getClasses() {

        Set<Class<?>> resources = new HashSet();

        resources.add(SystemRest.class);

      ...

      In wildfly 11 the log statemens never get printed and the rest resources does not work. Any ideas?