How to access H2 console in JBoss EAP 8?

Solution Verified - Updated -

Issue

  • How can I access H2 console in JBoss EAP 8?
  • In jboss-eap-8.0/modules/system/layers/base/com/h2database/h2/main/module.xml it is stated that:
 H2 uses Jakarta Servlet to allow apps/deployments to expose its console as a servlet. WildFly isn't concerning itself with allowing this H2 feature to continue to work in both a javax.* EE namespace and jakarta.* EE namespace environment, so this no longer works out of the box. But, we add an optional dep on a non-existent module as a hook to allow users to get it to work. Users who want this to work can provide a module with the name:slot javax.servlet.api:h2. That module could be a simple alias to the jakarta.servlet.api module the server provides, if that works with this module's H2 artifact. Or the user could provide a non-alias module that packages and exposes the servlet resources H2 needs.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.0.0 Beta

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content