Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 325
PRIYANK SINHA Avatar asked May 13 '16 08:05

PRIYANK SINHA


1 Answers

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.

like image 63
O. Trouvé Avatar answered Nov 18 '22 01:11

O. Trouvé