Installation on nearly clean Ubuntu 18.04 failed

petrdunaj
Messages : 2
Inscription : mar. juin 18, 2019 2:25 pm

Installation on nearly clean Ubuntu 18.04 failed

Message par petrdunaj » mar. juin 18, 2019 2:38 pm

2 core CPU, 8GB RAM, 20GB free space, Java11

I can't add here whole zipped log because 5kB file is too large for this forum ...

Code : Tout sélectionner

[19-06-18 14:18:46.678] SquashTM - 2565  INFO [main] [] --- org.hibernate.cfg.Environment: HHH000206: hibernate.properties not found
[19-06-18 14:18:46.704] SquashTM - 2565  WARN [main] [] --- org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashServletConfig': Unsatisfied dependency expressed through field 'credentialsProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashtest.tm.service.CredentialsProvider': Unsatisfied dependency expressed through field 'storedCredentialsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storedCredentialsManagerImpl': Injection of persistence dependencies failed; nested exception is 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 java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
[19-06-18 14:18:46.706] SquashTM - 2565  INFO [main] [] --- com.zaxxer.hikari.HikariDataSource: HikariPool-1 - Shutdown initiated...
[19-06-18 14:18:46.746] SquashTM - 2565  INFO [main] [] --- com.zaxxer.hikari.HikariDataSource: HikariPool-1 - Shutdown completed.
[19-06-18 14:18:46.762] SquashTM - 2565  INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'
[19-06-18 14:18:46.762] SquashTM - 2565  INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'
[19-06-18 14:18:46.825] SquashTM - 2565  INFO [main] [] --- org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener: 
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[19-06-18 14:18:46.829] SquashTM - 2565 ERROR [main] [] --- org.springframework.boot.SpringApplication: Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashServletConfig': Unsatisfied dependency expressed through field 'credentialsProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashtest.tm.service.CredentialsProvider': Unsatisfied dependency expressed through field 'storedCredentialsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storedCredentialsManagerImpl': Injection of persistence dependencies failed; nested exception is 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 java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:587) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:373) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1350) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1256) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1105) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[spring-beans-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:720) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]
	at org.squashtest.tm.SquashTm.main(SquashTm.java:58) ~[classes!/:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[squash-tm.war:?]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[squash-tm.war:?]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[squash-tm.war:?]
	at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:58) ~[squash-tm.war:?]

agoethals
Messages : 63
Inscription : mer. août 08, 2018 12:08 pm

Re: Installation on nearly clean Ubuntu 18.04 failed

Message par agoethals » mar. juin 18, 2019 2:47 pm

Hello,

squash-tm does not officially support java 11, yet.

Can you try with a different java version ?
You can install the openjdk-8-jre for instance (this package is on the Universe repos for Ubuntu 18.04), then use

Code : Tout sélectionner

update-alternatives --config java
to choose which java version will be the system default.

petrdunaj
Messages : 2
Inscription : mar. juin 18, 2019 2:25 pm

Re: Installation on nearly clean Ubuntu 18.04 failed

Message par petrdunaj » mar. juin 18, 2019 5:06 pm

thanks, works fine with java8

just for clarification

Code : Tout sélectionner

sudo update-alternatives --config java

cazetcazet
Messages : 1
Inscription : jeu. oct. 24, 2019 8:15 am

Re: Installation on nearly clean Ubuntu 18.04 failed

Message par cazetcazet » jeu. oct. 24, 2019 8:19 am

Steps:
sudo apt install openjdk-8-jre
sudo update-alternatives --config java
> select openjdk-8-jre choice
./startup.sh

Répondre