Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Java VM cannot find META-INF/persistence.xml (Eclipselink JPA)
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

I created a java library for use in XPages that contains JPA entity mapping. The eclipselink library is loaded correctly, but faults with:

Error while executing JavaScript computed expression
Script interpreter error, line=1, col=58: Error calling method 'processRequest(com.sun.faces.context.RequestParameterMap)' on java class 'de.itbalance.webservice.SearchRESTService'
No Persistence provider for EntityManager named myPersistenceProviderName

When i start the library from a standalone application context, everything works fine.

What do i have to do / where do i have to put the META-INF/persistence.xml so that the persitence provider information can be found by eclipselink inside the domino environment?
(i deployed the jar containing it in C:\Domino\jvm\lib\ext and tries to create the file there, in the directory C:\Domino\META-INF, as well as inside the WebContent\META-INF in the database itself - without any positive result).

Edit: If i put all the code into a WEB-INF/src folder which is in the build path, put the persistence.xml and orm.xml into WEB-IF/src/META-INF and put all the libraries i need into WEB-INF/lib, and remove all security restrictions from java.policy, it works (but is very hard to handle while develop, test and deploy), and not secure and not possible to deploy in a productive customer environment.

Is there any other possibility, to deploy this via jar?

Thx for your help or hints.

For more Info on the Backgrounds see (http://techdriveactive.blogspot.com/2011/09/jpa-eclipselink-and-lotus-domino.html)

Regards, Arne

Edit: i found this article that seems to lead to a solution, but i cant speak russian (maybe someone could translate the interesting part?):
http://turumbay.wordpress.com/2011/04/23/lotus-domino-jpa-guice/


Feedback number WEBB8M4HDK created by ~Richard Preluplopader on 09/27/2011

Status: Open
Comments:





Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS