I tried the examples from JERSEY-1957 and another example [2] with limited
success. Especially for components that should be created by guice (proxies
for transactions) I could not find a good solution.
So I thought, I follow the implementation for Spring [3] and do the same
for Guice. I have forked the current jersey master on github and added the
following modules:
Still, I have a problem with registering providers (and probably other
things like Features), as can be seen, when you try to use the custom
exception mapper for IllegalArgumentException
on helloworld-guice-webapp/guice-singleton-hello?p1=foobar.
Any suggestions? I really don't know HK2, so there might be a few things I
have done wrong.