as stated from your example: public void initialize(Bootstrap<Configuration> bootstrap) { **websocketBundle = new WebsocketBundle();** bootstrap.addBundle(websocketBundle); } is not an actual constructor.