Rest Filter : registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime

大兔子大兔子 提交于 2019-12-22 08:51:59

问题


I am getting an error :

A provider com.xyx.in.astra.aqr.security.application.requestFilter.UniversalSessionManagerFilter registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider com.xyx.in.astra.aqr.security.application.requestFilter.UniversalSessionManagerFilter will be ignored.

NOTE : 1) This UniversalSessionManagerFilter filter is in external jar file which is in the server classpath 2) I am using @Provider annotation on the filter and @Priority annotation to define priority 3) This is rest server filter


回答1:


This has been reported as an issue in Jersey. See Jersey issue #3700.

With Jersey 2.26 the warning message is triggered if you register an instantiated resource object directly on a ResourceConfig. However, the warning is intentional.

You can register a class instead of an instance. Or you can configure the resource via an AbstractBinder and a Feature.

If the warning actually originates from a third-party library registering a resource instance on a ResourceConfig, you can work around it by suppressing log messages from the org.glassfish.jersey.internal.inject.Providers logger as recommended in the Jersey ticket.



来源:https://stackoverflow.com/questions/37204930/rest-filter-registered-in-server-runtime-does-not-implement-any-provider-inter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!