Depending on the jdbc url, H2 in in-memory mode can create a new private db with each new connection (ex jdbc:h2:mem:
), or a db shared by many connections in the same VM using the same URL (ex jdbc:h2:mem:db1
).
If you're using the private db (former) URL, could be that the 2nd connection is creating a new db which does not have the table definition created by the first connection?