Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » jpa: change path to persistence.xml
jpa: change path to persistence.xml [message #222707] Sat, 18 October 2008 20:24 Go to next message
Denis Kostousov is currently offline Denis KostousovFriend
Messages: 32
Registered: July 2009
Member
How is it to move persistence.xml to another place in my project?

I have a ejb project with jpa facet enabled. The file persistence.xml is lying in the src/META-INF by default. I create
folders src/main/resource, mark it as the source folder and move the META-INF from src to src/main/resources. Then try
to build the project. The build process fails. The view Problems have a message "No persistence.xml file found in
project". How I can change paths to persistence.xml and META-INF?


--
Denis Kostousov
email: denis.kostousovATgmailDOTcom
jabber: denis.kostousovATgmailDOTcom
fingerprint: D32B A253 F678 9EF1 1079 4F5A 52E1 8EEA FAF9 E1F1
Re: change path to persistence.xml [message #222744 is a reply to message #222707] Mon, 20 October 2008 09:24 Go to previous message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
I am not sure what do you try to achieve, but you can try playing with the
..settings/org.eclipse.wst.common.component file.

Greetings,
Kaloyan

"Denis Kostousov" <denis.kostousov@gmail.com> wrote in message
news:gddglj$2ja$1@build.eclipse.org...
> How is it to move persistence.xml to another place in my project?
>
> I have a ejb project with jpa facet enabled. The file persistence.xml is
> lying in the src/META-INF by default. I create folders src/main/resource,
> mark it as the source folder and move the META-INF from src to
> src/main/resources. Then try to build the project. The build process
> fails. The view Problems have a message "No persistence.xml file found in
> project". How I can change paths to persistence.xml and META-INF?
>
>
> --
> Denis Kostousov
> email: denis.kostousovATgmailDOTcom
> jabber: denis.kostousovATgmailDOTcom
> fingerprint: D32B A253 F678 9EF1 1079 4F5A 52E1 8EEA FAF9 E1F1
Previous Topic:Servlet Version Conflict
Next Topic:Re: AXIS2 and Europa
Goto Forum:
  


Current Time: Tue Mar 19 03:59:08 GMT 2024

Powered by FUDForum. Page generated in 0.02063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top