i'm trying to configurate a JavaEE project with IntelliJ IDEA.
my configuration :
- IDE Intellij (Jetbrains)
- Glassfish (EJB Container)
- JPA entities (Hibernate provider)
- Database with WAMP (configured in persistence.xml)
Unfortunately, when i launch my project, a 404 page is displaying : EJBTransactionRolledbackException.
i don't understand this exception or this problem...maybe it's my file persistence.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="PU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
<property name="hibernate.connection.user" value="root" />
<property name="hibernate.connection.password" value="root" />
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/supbartering" />
<property name="hibernate.hbm2ddl.auto" value="update" />
</properties>
</persistence-unit>
</persistence>
and i use it with :
@PersistenceContext(unitName = "PU")
private EntityManager mEntityManager;
It's the first time i 'm using Intellij with JEE project and GlassFish server, but i can't achieve the good configuration.