You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried updating a ROO project to use spring 3.0.3.BUILD-SNAPSHOT to prove a fix in the 3.0.3 stuff.
What I found thou was an exception ....
java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode
Which seemed to be because spring aspects was including (groupid/artifactid/version) javax.persistence/persistence-api/1.0 and ROO includes org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.0.Final
So putting an exclude on spring aspects for the javax.persistence/persistence-api/1.0 fixed the issue for me.
But I guess I would have expected it to be an optional dependency on spring-aspects. Which is why I've raised it as an issue here
spring-aspects' JPA API dependency has been changed back to 'provided' for the time being. This reopens #11485 to some degree but should work better for typical usage in applications.
Steve Mosley opened SPR-7284 and commented
I tried updating a ROO project to use spring 3.0.3.BUILD-SNAPSHOT to prove a fix in the 3.0.3 stuff.
What I found thou was an exception ....
java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode
Which seemed to be because spring aspects was including (groupid/artifactid/version) javax.persistence/persistence-api/1.0 and ROO includes org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.0.Final
So putting an exclude on spring aspects for the javax.persistence/persistence-api/1.0 fixed the issue for me.
But I guess I would have expected it to be an optional dependency on spring-aspects. Which is why I've raised it as an issue here
Steve
Affects: 3.0.3
Issue Links:
The text was updated successfully, but these errors were encountered: