Please use this:
@Inject(name="server")
Server server;
instead of this:
@Inject
Server server;
There is some kind of bug in HK2 that won't inject properly if the
'name' Attribute has key=true on it, which is a change I'm making as
part of Issue 6040 and some related AMX work. The key=true must be
set. Oddly, it's only 'Server' which has this issue, nothing else.
Lloyd
..............................................
Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish team, LSARC member