I have my persistence.xml
with the same name using TopLink
under the META-INF
directory.
Then, I have my code calling it with:
If you are using Eclipse make sure that exclusion pattern does not remove your persistence.xml
from source folders on build path.
MyProject/src/main/java -> Excluded:
Excluded: (None)
by selecting the node and clicking Edit... button on the left.