|No persistence.xml file found in project? [message #668658]
||Fri, 06 May 2011 11:45
| Karsten Wutzke
Registered: July 2009
I had a regular JavaSE project. I converted it to a faceted project and added the Utility and JPA facets. Then a META-INF directory was created under src along with a persistence.xml.
This file of course was just a stub, so I deleted it because Eclipse complained that the entity classes weren't in persistence.xml. I then created a new persistence.xml that was/is *linked* to a file in the project's dir. Since then I get the error: "No persistence.xml file found in project"
I've found this http://wap.ecw.de/archives/1380 but I don't really know what to put where in my case.
Here's my current org.eclipse.wst.common.component:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="Test Geoareas Non-PK">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="Test_Geoareas_Hibernate_JPA2_IdClass"/>
<property name="java-output-path" value="/Test Geoareas Hibernate JPA2 IdClass/bin"/>
Does anyone know how to repair this (what to do exactly)?
Powered by FUDForum
. Page generated in 0.01585 seconds