2 Replies Latest reply on Oct 13, 2014 8:34 PM by Congmin Min

    Configure H2 server mode database

    Congmin Min Newbie

      Hollo, I is testing the H2 database in wildfly 8 with the greeter example including in the QuickStart demos.  In the Web-INF/greeter-quickstart-ds.xml, I changed to "jdbc:h2:tcp://localhost/~/" from "jdbc:h2:mem:", then restart the server, it reports a "File Not Found" error. Should I make any other change in the settings?


      <datasource jndi-name="java:jboss/datasources/GreeterQuickstartDS"

              pool-name="greeter-quickstart" enabled="true" use-java-context="true">









      I didn't change anything in the persistence.xml:


        <persistence-unit name="primary">

              <!-- If you are running in a production environment, add a managed

                  data source, this example data source is just for development and testing! -->

              <!-- The datasource is deployed as WEB-INF/greeter-quickstart-ds.xml,

                  you can find it in the source at src/main/webapp/WEB-INF/greeter-quickstart-ds.xml -->



                  <!-- Properties for Hibernate -->

                  <property name="hibernate.hbm2ddl.auto" value="create-drop" />

                  <property name="hibernate.show_sql" value="false" />




      Thanks for any info and help.