diff --git a/components/dropwizard/src/main/java/org/trellisldp/dropwizard/AbstractTrellisApplication.java b/components/dropwizard/src/main/java/org/trellisldp/dropwizard/AbstractTrellisApplication.java index 9c58046a0..e4f7936cb 100644 --- a/components/dropwizard/src/main/java/org/trellisldp/dropwizard/AbstractTrellisApplication.java +++ b/components/dropwizard/src/main/java/org/trellisldp/dropwizard/AbstractTrellisApplication.java @@ -156,11 +156,17 @@ public void run(final T config, final Environment environment) throws Exception @Override protected void configure() { bind(webac).to(WebAcService.class); - bind(getServiceBundler().getResourceService()).to(ResourceService.class); } }); }); + environment.jersey().register(new AbstractBinder() { + @Override + protected void configure() { + bind(getServiceBundler().getResourceService()).to(ResourceService.class); + } + }); + // WebSub ofNullable(config.getHubUrl()).ifPresent(hub -> { final WebSubHeaderFilter webSubFilter = new WebSubHeaderFilter();