A project created using version 2.2 of the jersey-quickstart-grizzly2 artifact (from org.glassfish.jersey.archetypes) generates 4000+ lines of warnings when the main program is run. Here is the beginning of the error message :
WARNING : The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.server.internal.inject.WebTargetValueFactoryProvider] with an exception:
MultiException stack 1 of 4
at java.lang.Class.getDeclaredMethods0(Native Method)
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.ClientConfig
The server is still running correctly after the warnings have been printed.
I was able to remove the warnings by including the jersey-client package into the main project (by removing the scope line in the pom file) :
However, it seems weird that the server would require the client package, but my knowledge of java is not very advanced.