Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring aspects depends on javax.persistence/persistence-api 1.0. Conflicts with ROO including hibernate-jpa-2.0-api [SPR-7284] #11943

Closed
spring-projects-issues opened this issue Jun 14, 2010 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 14, 2010

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:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jun 14, 2010

Juergen Hoeller commented

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.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant