Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-10120

NoClassDefFoundError: javax/validation/ClockProvider when starting project created by kie-service-spring-boot-archetype

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.74.0.Final
    • 7.73.0.Final
    • SpringBoot
    • None
    • 2022 Week 35-37 (from Aug 29), 2022 Week 38-40 (from Sept 19), 2022 Week 41-43 (from Oct 10), 2022 Week 44-46 (from Oct 31)

      mvn archetype:generate -B -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-service-spring-boot-archetype -DarchetypeVersion=7.73.0.Final -DgroupId=com.company -DartifactId=business-application-service -Dversion=1.0-SNAPSHOT -Dpackage=com.company.service -DappType=bpm
      

      is generating a project that doesn't start. The following exception is thrown:

      java.lang.NoClassDefFoundError: javax/validation/ClockProvider
      	at org.hibernate.validator.internal.engine.AbstractConfigurationImpl.<init>(AbstractConfigurationImpl.java:157) ~[hibernate-validator-6.1.7.Final.jar:6.1.7.Final]
      	at org.hibernate.validator.internal.engine.AbstractConfigurationImpl.<init>(AbstractConfigurationImpl.java:134) ~[hibernate-validator-6.1.7.Final.jar:6.1.7.Final]
      	at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:28) ~[hibernate-validator-6.1.7.Final.jar:6.1.7.Final]
      	at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:33) ~[hibernate-validator-6.1.7.Final.jar:6.1.7.Final]
      	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) ~[validation-api-1.1.0.Final.jar:na]
      	at org.springframework.boot.validation.MessageInterpolatorFactory.getMessageInterpolator(MessageInterpolatorFactory.java:79) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:70) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesJsr303Validator$Delegate.<init>(ConfigurationPropertiesJsr303Validator.java:68) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesJsr303Validator.<init>(ConfigurationPropertiesJsr303Validator.java:41) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getJsr303Validator(ConfigurationPropertiesBinder.java:155) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getValidators(ConfigurationPropertiesBinder.java:145) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBindHandler(ConfigurationPropertiesBinder.java:113) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:94) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:89) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:78) ~[spring-boot-2.6.6.jar:2.6.6]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) ~[spring-beans-5.3.20.jar:5.3.20]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.3.20.jar:5.3.20]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.20.jar:5.3.20]
      	... 72 common frames omitted
      

              hbelmiro@redhat.com Helber Belmiro
              hbelmiro@redhat.com Helber Belmiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: