 |
|
 |
Subject: Java VM cannot find META-INF/persistence.xml (Eclipselink JPA) |
 |
 |
 |
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:

|
|  |
|