If you deploy the webap (war) to a servlet container (e.g. tomcat) and relaod the webapp, the h2 database used for MQTT is locked.