diff --git a/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java b/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java index aeecb1569..060d5cab8 100644 --- a/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java +++ b/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java @@ -204,10 +204,7 @@ public class RestfulStrolchComponent extends StrolchComponent { @Override public void start() throws Exception { - if (instance == null) - instance = this; - else if (instance != this) - throw new IllegalStateException("Instance is already set! This component is a singleton resource!"); + instance = this; super.start(); }