Index: JmxServiceUrlsResource.java =================================================================== --- JmxServiceUrlsResource.java (revision 56074) +++ JmxServiceUrlsResource.java (working copy) @@ -54,6 +54,7 @@ import org.glassfish.admin.rest.results.ActionReportResult; import org.glassfish.admin.rest.utils.xml.RestActionReporter; import org.glassfish.hk2.api.ServiceLocator; +import org.glassfish.internal.api.Globals; import org.jvnet.hk2.config.Dom; /** @@ -62,8 +63,7 @@ */ public class JmxServiceUrlsResource { - @Context - protected ServiceLocator habitat; + protected ServiceLocator habitat = Globals.getDefaultHabitat(); public void setEntity(Dom p) { // ugly no-op hack. For now.