2 Replies Latest reply on Oct 7, 2011 4:31 AM by Gary Brown

    Openshift distribution testing appears to be missing a javax.xml.bind resource jar

    Gary Brown Master

      I am currently build quickstarts for the BPEL component and hooking them into the AS7 release tests.

       

      The tests run fine for the standalone distribution, but fail with the following exception with the openshift express distribution tests:

       

      Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
          at org.hibernate.validator.engine.ConfigurationImpl.parseValidationXml(ConfigurationImpl.java:261) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
          at org.hibernate.validator.engine.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:148) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
          at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) [validation-api-1.0.0.GA.jar:]
          at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:514)
          at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:116)
          ... 27 more
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException from [Module "org.hibernate.validator:main" from local module loader @a6d51e (roots: /home/gbrown/NotBackedUp/repositories/switchyard/objectiser/switchyard-release/jboss-as7/openshift/express/dist/target/switchyard-as7-0.3/modules)]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334) [:1.6.0_18]
          ... 32 more
      

       

      I compared the AS7 test environments in the target folders for the distributions, and found that although both hibernate/validator modules were identical (with a dependency on javax.xml.bind.api), the javax.xml.bind.api modules were different.

       

      The standalone AS7 test environment's module had jboss-jaxb-api_2.2_spec-1.0.3.Final.jar (containing the required class), whereas the openshift express version of the module didn't have any jars.

       

      Is there any reason for this difference? If so, any thoughts on how to resolve this dependency for hibernate validator?

       

      Regards

      Gary