Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-204 datepicker semi-language dependent
  3. ROO-224

Hibernate Validator dependency on Java 6 causes exception in projects created by Roo on Java 5 machines

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC2, 1.1.0.M1
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      As originally reported in the comments of ROO-204:

      After initially building roo I saw the following stacktrace after entering a date:
      java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      at org.hibernate.validation.engine.ConfigurationImpl.parseValidationXml(ConfigurationImpl.java:187)
      at org.hibernate.validation.engine.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:116)
      at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:109)
      at com.springsource.petclinic.web.OwnerController_Roo_Controller.ajc$interMethod$com_springsource_petclinic_web_OwnerController_Roo_Controller$com_springsource_petclinic_web_OwnerController$cr
      eate(OwnerController_Roo_Controller.aj:18)
      at com.springsource.petclinic.web.OwnerController.create(OwnerController.java:1)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:654)

      I was using Java 5 to build and run this. Turns out javax.xml.bind is not present in Java 5, only Java 6. This may be a problem, because roo is supposed to require just Java 5.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                balex Ben Alex
                Reporter:
                blankser Erik-Jan Blanksma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: