Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1545

Using Hibernate on JBoss cause problems and does not work out-of-the-box

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: PERSISTENCE
    • Labels:
      None
    • Environment:
      jboss-6.0.0.20100911-M5

      Description

      Issue is related to well know classlading JBoss problem. JBoss distribution contains Hibernate jars which are older then one used by Spring Roo-generated application.

      While using hibernate as provider adding these two properties in persistence.xml:

            <property name="hibernate.validator.apply_to_ddl" value="false"/>
            <property name="hibernate.validator.autoregister_listeners" value="false"/>
      

      solves problem.

      Solution from here.

      For google and anyone who does not want to waste time on JBoss classloading settings (which does not really work):

      Caused by: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>
      

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            hamsterready Hamster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: