My Java EE application cannot find tables. I am using WildFly (as the application server) and H2 (as the DB, in the embedded mode). The error is: org.h2.jdbc.JdbcSQLException: Table "MY_TABLE" not found  Look at my table creation: create table "MY_TABLE" ( -- ... );  See how my entity is defined: @Entity @Table(name = "MY_TABLE") public class MyTable { // ... }  This is how I call JPA (this causes the exception): @PersistenceContext private EntityManager entityManager; // ... entityManager.find(MyTable.class, 1);  My persistence.xml is:  java:jboss/datasources/myappDS  And the standalone.xml in my WildFly:  jdbc:h2:~/myapp;SCHEMA=PUBLIC h2 org.h2.jdbcx.JdbcDataSource  Everything looks good so why the exception? Do I need to flush something? Or set schema somewhere? If I configure another datasource (having the same DB structure) in WildFly (for example Postgres), everything works fine. That would mean that the datasource configuration is the place causing the error. (Yes, I am totally sure the DB is not empty and the connection URL is correct as I have tried it from an SQL client.)