Hi
This is a general ignorance question about web apps I suspect:
I've got multiple databases and I'm using JPA.
In my persistence.xml file I've got under my persistence-unit
<mapping-file>ukpostcodesOrm.xml</mapping-file>
In my META-INF folder I've got the file ukpostcodesOrm.xml
but for some reason or other I get the error message:
javax.persistence.PersistenceException: [PersistenceUnit: ukpostcodes]
Unable to find XML mapping file in classpath: ukpostcodesOrm.xml
What is responsible for putting the mapping file in the classpath at
runtime? I thought stuff in META-INF got there automatically
I tried changing the file name back to orm.xml and leaving the mapping-
file reference in - it still fails. But if there is no mapping-file
element, the orm.xml is found just fine.
Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---