java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator Seam weblogic 10.3

前端 未结 3 1682
悲哀的现实
悲哀的现实 2020-12-29 06:52

I have a big problem with Hibernate (use with seam) on weblogic 10.3.

When I publish my application, I get this error:

java.lang.NoSuchMethodExceptio         


        
3条回答
  •  悲&欢浪女
    2020-12-29 07:13

    If you happen to hit this issue on Weblogic Server, I solved this problem on Weblogic 10.3.0.0 with placing the package org.hibernate to prefer-application-packages at weblogic-application.xml in the EAR:

    
       
          org.hibernate.*
       
    
    

    With a properly built application this will prevent Weblogic Server loading the older, conflicting library from the server's classpath and make it work as expected.

提交回复
热议问题