Apr 9, 2015

How to get h2console.war accessable from a remote server

RedHat offers a quickstart package, which contains a h2console.war. This allows via the
browser to access H2 databases on a jboss/wildfly instance.

Here I found a link on github for the h2console from the quickstart repo.

But after deploying the h2console.war, the console /h2console is only accessible by a localhost.
When you try to access the console from remote you get the hint, that webAllowothers   is not set.

Tto set this option and allow remote access to the console you have to edit WEB-INF/web.xml in the
h2console.war and set the webAllowOthers option:


for the servlet. 

I got this hint from a bug-entry for wildfly.