SAP-samples / s4hana-ext-create-employee

SAP Extensibility Explorer example: SAP S/4HANA Cloud App for One-Click User Creation http://tiny.cc/s4-create-employee
Apache License 2.0
5 stars 4 forks source link

Starting of application failed #2

Open dejbob opened 4 years ago

dejbob commented 4 years ago

Hi,

after following the guide (download code, Maven build) I have encountered an error after pushing the app to SCP (see below).

Did I miss anything?

2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1699) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089) ~[spring-context-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859) ~[spring-context-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) [spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398) [spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar!/:2.0.4.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at com.sap.csc.employeecreationbe.EmployeeCreationBeApplication.main(EmployeeCreationBeApplication.java:17) [classes/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [app/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [app/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:402) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1758) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1695) ~[spring-beans-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT ... 24 common frames omitted 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT Caused by: org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.integrate(BeanValidationIntegrator.java:138) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:281) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) ~[spring-orm-5.0.8.RELEASE.jar!/:5.0.8.RELEASE] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT ... 28 common frames omitted 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.validator.internal.engine.ValidatorFactoryImpl.(ValidatorFactoryImpl.java:140) ~[hibernate-validator-6.0.11.Final.jar!/:6.0.11.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.validator.HibernateValidator.buildValidatorFactory(HibernateValidator.java:38) ~[hibernate-validator-6.0.11.Final.jar!/:6.0.11.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.validator.internal.engine.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:364) ~[hibernate-validator-6.0.11.Final.jar!/:6.0.11.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:103) ~[validation-api-2.0.1.Final.jar!/:na] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:501) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.cfg.beanvalidation.TypeSafeActivator.activate(TypeSafeActivator.java:84) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.integrate(BeanValidationIntegrator.java:132) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final] 2020-03-24T17:46:56.715+0000 [APP/PROC/WEB/0] OUT ... 34 common frames omitted

amritanshukr commented 4 years ago

Hi, @dejbob
There was a bug with respect to one of S/4HANA jars, which I have just upgraded & fixed along with one of the WSDL file.

Many thanks for reporting the issue. Please take the new code and proceed ahead.

thanks & regards, amritanshu

dejbob commented 4 years ago

Hey @amritanshukr,

unfortunately that does not seem to have fixed the issue. Please find the logs attached below. logs.txt

I have also attached the Maven package output. mvn_package_logs.txt

Thank you for your support!