My stack:
JBoss Wildfly 10 server
Ubuntu 16.04
Java 8
Postgres 9.5.6
Hibernate 5
I am having problems trying to get my
JUnit test to work. The unit tests were created by JBoss and they are used to test if Hibernate is working properly. I got their hibernate5 quickstart tutorial to work, and it was using an H2 database. Now I'm trying to using some of their code (datasource.xml and persistence.xml) for my personal project, and I'm using a Postgres database with Hibernate JPA. I got the following exception when I tried to run the unit test:
Here's the unit test method that corresponds with the exception. The exception is thrown in the try block:
I tried to configure my standalone.xml using this StackOverflow post
webpage. Here's what my standalone.xml datasource looks like:
Here's what my module.xml looks like. It's in directory wildfly-10.1.0.final/modules/org/postgres/main:
Here's what my datasource in the WEB-INF folder looks like:
Here's what my persistence.xml looks like from the META-INF folder:
Does anyone know what I need to do in order to fix this exception? Thanks.