This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting dialect error while deploying EJB

Suresh Magi
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to deploy and EJB which tries to persist an entity using JPA . I am trying to connect to oracle DB.

I am getting the following the error,

ObjectName: persistence.units:jar=sampleEJB.jar,unitName=employeeDB
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
I Depend On:
Depends On Me:

I am posting my persistence.xml file for corrections if any,

<persistence-unit name="employeeDB">
<property name="hibernate.dialect"
value="org.hibernate.dialect.OracleDialect" />
<property name="" value="create-drop" />

Suresh B
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic