Unable to resolve persistence unit root URL with LocalContainerEntityManagerFactoryBean [SPR-15304] #19869
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: superseded
An issue that has been superseded by another
Mark Anderson opened SPR-15304 and commented
When using LocalContainerEntityManagerFactoryBean without any JPA xml configurations the following error is seen
Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
My bean is defined as follows
This issue seems to be a further variant of #13474, #15859 and #18819.
The error only occurs when my application is deployed with all code and resources in jar files. I can run without error when the classes and resources are within directories on the classpath.
As a workaround I can add the following and my application will start.
Affects: 4.3.6
Issue Links:
The text was updated successfully, but these errors were encountered: