Questions tagged [persistence.xml]

Used with the Java Persistence API, specifies names and database properties.

When used with the Java Persistence API, the persistence.xml file is usually placed in the META-INF folder; it's used to specify the persistence provider name, entity class names, and properties like the database connection URL, driver, user, password, and so on (taken from http://www.javaworld.com/javaworld/jw-01-2008/jw-01-jpa1.html?page=3).

519 questions
0
votes
1 answer

Deploying to Heroku with my persistence.xml (JPA) without using Spring

I have an error in application deployment with "git push master heroku" while locally it works fine. I want to use my persistence.xml for access to my data base of H2 (I will be use maybe PostgreSQL) all with my data source on WildFly 10. I found no…
0
votes
1 answer

Error while persisting a JPA model

I have an error while persisting my data and I have no idea what is the problem there !! Here is the content of the Persistence.xml
Mohamed Taboubi
  • 6,663
  • 11
  • 55
  • 87
0
votes
1 answer

How can I manage to use 2 persistense units and make my app to recognize which to use?

I hava a JavaEE/ EJB3 application in which I'll need to connect diferent databases. It's on JBOSS 5.10GA. After I tried to deploy it I got the following error: 09:04:57,921 ERROR [AbstractKernelController] Error installing to Real:…
0
votes
1 answer

Maven EAR multimodule project not packaging persistence.xml

I`m working in a EAR project with Maven which has 2 modules. Images speaks louder than words, so let me show you the structure: Parent pom project and modules sigea-model contains model, repository and service layers (The "M" in MVC). sigea-web…
Alvaro Pedraza
  • 1,176
  • 6
  • 20
  • 44
0
votes
1 answer

Reading Environment variables using into persistence.xml JPA properties

I have an user-defined service in Bluemix (on-premise database that is not on the Bluemix cloud), and the credentials looks like this: System-Provided: { "VCAP_SERVICES": { "user-provided": [ { "credentials": { "dbname": "", …
Frank Song
  • 11
  • 4
0
votes
1 answer

hibernate persistence does not create tables

I'm using below maven dependencies in my spring mvc project: org.hibernate hibernate-validator 4.2.0.Final