eclipselink PersistenceUnitLoadingEception in executable JAR

前端 未结 6 1602
别那么骄傲
别那么骄傲 2021-01-13 09:57

I am developing a stand-alone java application which uses eclipselink. It is all fine when I execute the app from eclipse IDE. But I\'ve exported an executable JAR file, and

6条回答
  •  难免孤独
    2021-01-13 10:35

    I found the respective solution (that is if you are not using EclipseLink 2.3.2), as mentioned by GaDo in Bug 364748, the solution is to add the following line into MANIFEST.MF

    Eclipse-BundleShape: dir
    

    This leads to the plug-in being exported as directory instead as JAR file, which makes persistence.xml accessible.

提交回复
热议问题