I've extended the EmbeddedCatalinaServiceSX class to perform some tasks. In the methods performDeploy and performUndeploy the original functionality is executed first then some additional work is done.
The problem I'm seeing is that on occasion an exception is thrown at startup saying that the :service=Webserver is not registered. I can start the rest of the server, verify that the Webserver service has been started and still get this error.
I've tried adding the tag in the xml file and it seems to help but the problem persists.