Step 1) Create web.xml configuration by executing:
Restart grails app now. H2 db should be accessible at port 9092.
grails create-web-xml-configStep 2) Make this change in WebXmlConfig.groovy
listener.add = trueStep 3) Add a listener in WebXmlConfig.groovy:
listener.classNames = ["org.h2.server.web.DbStarter"]Step 4) Add following line in WebXmlConfig.groovy:
contextparams = ["db.tcpServer": '-tcpAllowOthers']
Restart grails app now. H2 db should be accessible at port 9092.