Remove the resources.add(com.wordnik.swagger.jaxrs.JaxrsApiReader.class); from ApplicationConfig to avoid error warning in Glassfish.