Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

persistence and hibernate jar conflicts

 
Hari Gundappa
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I get this exception while deploying my enterprise app on WAS 6.1.x.
Caused by: java.lang.NoSuchMethodError: javax/persistence/OneToOne.orphanRemoval()Z


Some litreture on internet mention its the jar problem and in my case it is. I have ejb3-persistence.jar and hibernate3.jar both of which have this class and hence the conflict.

However as the solutions suggested on the internet( remove one of them) I can't remove either one of them as, I need the javax.persistence packages for all my annotations and hibernate of the orm stuff.

I am completely stuck here and need some help.

Can some please suggest a combination or solution to this?

THanks,
Hari
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried hibernate-jpa-xxx.jar in place of ejb3-persistence.jar?
 
Hari Gundappa
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I removed the ejb3-persistenc jar and have the hibernate-jpa-2.0-api-1.0.0.Final.jar. But now this error pops up


Caused by: java.lang.NoSuchMethodError: javax/persistence/spi/PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;


Please advise.

Thanks,
Narahari
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic