Hello everyone,
I'm trying to deploy my cas.was into an external tomcat container (not
embedded) but I get an error during deployment.
When using embedded tomcat it's working correctly.
I build the war with the command:
*gradlew clean build*
I think the problem is relative to spring boot configuration but I'm not
sure.
1. I start tomcat 9.0.19 with startup.bat (My tests are on a windows
machine but the production OS is on a CentOS)
I copy cas.war in the webapps directory here is the log:
NOTE: Picked up JDK_JAVA_OPTIONS:
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
18-Apr-2019 09:38:39.762 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Version du serveur:
Apache Tomcat/9.0.19
18-Apr-2019 09:38:39.766 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Serveur compil├®:
Apr 12 2019 14:22:48 UTC
18-Apr-2019 09:38:39.766 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Version du serveur:
9.0.19.0
18-Apr-2019 09:38:39.767 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Nom de l'OS:
Windows 10
18-Apr-2019 09:38:39.767 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Version de l'OS:
10.0
18-Apr-2019 09:38:39.767 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
amd64
18-Apr-2019 09:38:39.767 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log R├®pertoire de Java:
C:\Program Files\Java\jdk-11.0.2
18-Apr-2019 09:38:39.768 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Version de la JVM:
11.0.2+9-LTS
18-Apr-2019 09:38:39.768 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Fournisseur de la
JVM: Oracle Corporation
18-Apr-2019 09:38:39.768 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
D:\edhec\web\tomcat\apache-tomcat-9.0.19
18-Apr-2019 09:38:39.768 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
D:\edhec\web\tomcat\apache-tomcat-9.0.19
18-Apr-2019 09:38:39.768 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: --add-opens=java.base/java.lang=ALL-UNNAMED
18-Apr-2019 09:38:39.769 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: --add-opens=java.base/java.io=ALL-UNNAMED
18-Apr-2019 09:38:39.769 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
18-Apr-2019 09:38:39.769 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande:
-Djava.util.logging.config.file=D:\edhec\web\tomcat\apache-tomcat-9.0.19\conf\logging.properties
18-Apr-2019 09:38:39.769 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
18-Apr-2019 09:38:39.769 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Djdk.tls.ephemeralDHKeySize=2048
18-Apr-2019 09:38:39.770 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
18-Apr-2019 09:38:39.770 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Dignore.endorsed.dirs=
18-Apr-2019 09:38:39.770 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Dcatalina.base=D:\edhec\web\tomcat\apache-tomcat-9.0.19
18-Apr-2019 09:38:39.770 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Dcatalina.home=D:\edhec\web\tomcat\apache-tomcat-9.0.19
18-Apr-2019 09:38:39.771 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Argument de la ligne
de commande: -Djava.io.tmpdir=D:\edhec\web\tomcat\apache-tomcat-9.0.19\temp
18-Apr-2019 09:38:39.771 INFO [main]
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent La librairie
Apache Tomcat Native bas├®e sur APR qui permet des performances optimales
dans les environnements de production n'a pas ├®t├® trouv├®e sur le
java.library.path: [C:\Program
Files\Java\jdk-11.0.2\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\Java\jdk-11.0.2\bin;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program
Files\Intel\Intel(R) Management Engine
Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\nodejs\;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS
Code\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program
Files\Git\cmd;C:\Users\j_andre\AppData\Local\Microsoft\WindowsApps;C:\Program
Files\Microsoft VS
Code\bin;C:\Users\j_andre\AppData\Roaming\npm;D:\edhec\web\intellij\IntelliJ
IDEA 2018.3.2\bin;;;.]
18-Apr-2019 09:38:39.804 INFO [main]
org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de
protocole ["http-nio-8080"]
18-Apr-2019 09:38:39.876 INFO [main]
org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de
protocole ["ajp-nio-8009"]
18-Apr-2019 09:38:39.880 INFO [main]
org.apache.catalina.startup.Catalina.load L'initialisation du serveur a
pris [459] millisecondes
18-Apr-2019 09:38:39.921 INFO [main]
org.apache.catalina.core.StandardService.startInternal D├®marrage du
service [Catalina]
18-Apr-2019 09:38:39.921 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal D├®marrage du moteur
de Servlets: [Apache Tomcat/9.0.19]
18-Apr-2019 09:38:39.938 INFO [main]
org.apache.catalina.startup.HostConfig.deployWAR D├®ploiement de l'archive
[D:\edhec\web\tomcat\apache-tomcat-9.0.19\webapps\cas.war] de l'application
web
18-Apr-2019 09:38:47.014 INFO [main]
org.apache.jasper.servlet.TldScanner.scanJars Au moins un fichier JAR a
├®t├® analys├® pour trouver des TLDs mais il n'en contenait pas, le mode
"debug" du journal peut ├¬tre activ├® pour obtenir une liste compl├¿te de
JAR scann├®s sans succ├¿s; ├®viter d'analyser des JARs inutilement peut
am├®liorer sensiblement le temps de d├®marrage et le temps de compilation
des JSPs
[36m
____ _ ____ ____ __ _
____
/ ___| / \ / ___| / ___| ___ _ __ / _| (_) __ _ /
___| ___ _ __ __ __ ___ _ __
| | / _ \ \___ \ | | / _ \ | '_ \ | |_ | | / _` |
\___ \ / _ \ | '__| \ \ / / / _ \ | '__|
| |___ / ___ \ ___) | | |___ | (_) | | | | | | _| | | | (_| |
___) | | __/ | | \ V / | __/ | |
\____| /_/ \_\ |____/ \____| \___/ |_| |_| |_| |_| \__, |
|____/ \___| |_| \_/ \___| |_|
|___/
CAS Version: 6.1.0-RC3-SNAPSHOT
CAS Commit Id: 2a9ae09c7062398cb2b5975819ecb3616ab6fbd3
CAS Build Date/Time: 2019-04-17T07:23:04Z
Spring Boot Version: 2.2.0.M1
Spring Version: 5.1.6.RELEASE
Java Home: C:\Program Files\Java\jdk-11.0.2
Java Vendor: Oracle Corporation
Java Version: 11.0.2
JVM Free Memory: 90 MB
JVM Maximum Memory: 3 GB
JVM Total Memory: 370 MB
JCE Installed: Yes
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2019-04-18T09:38:50.774916800
OS Temp Directory: D:\edhec\web\tomcat\apache-tomcat-9.0.19\temp
------------------------------------------------------------
[0m
2019-04-18 09:38:50,809 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- <Configuration files found at [\etc\cas\config] are [[file
[D:\etc\cas\config\cas.properties]]] under profile(s) [[standalone]]>
2019-04-18 09:38:50,900 INFO
[org.apereo.cas.CasConfigurationServerServletInitializer] - <The following
profiles are active: standalone>
18-Apr-2019 09:38:58.529 WARNING [main]
com.hazelcast.instance.HazelcastInstanceFactory.null Hazelcast is starting
in a Java modular environment (Java 9 and newer) but without proper access
to required Java packages. Use additional Java arguments to provide
Hazelcast access to Java internal API. The internal API access is used to
get the best performance results. Arguments to be used:
--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.management/sun.management=ALL-UNNAMED --add-opens
jdk.management/com.sun.management.internal=ALL-UNNAMED
2019-04-18 09:41:35,597 WARN [com.hazelcast.instance.AddressPicker] -
<[LOCAL] [dev] [3.11.2] You configured your member address as host name.
Please be aware of that your dns can be spoofed. Make sure that your dns
configurations are correct.>
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
com.hazelcast.internal.networking.nio.SelectorOptimizer
(file:/D:/edhec/web/tomcat/apache-tomcat-9.0.19/webapps/cas/WEB-INF/lib/hazelcast-3.11.2.jar)
to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of
com.hazelcast.internal.networking.nio.SelectorOptimizer
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
2019-04-18 09:41:39,553 INFO [org.apereo.cas.util.CoreTicketUtils] -
<Ticket registry encryption/signing is turned off. This MAY NOT be safe in
a clustered production environment. Consider using other choices to handle
encryption, signing and verification of ticket registry tickets, and verify
the chosen ticket registry does support this behavior.>
2019-04-18 09:41:40,567 INFO
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] -
<Watching service registry directory at
[D:\edhec\web\tomcat\apache-tomcat-9.0.19\webapps\cas\WEB-INF\classes\etc\cas\services]>
2019-04-18 09:41:44,695 WARN
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
- <Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'healthIndicatorRegistry' defined in class path
resource
[org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory
method 'healthIndicatorRegistry' threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'configServerHealthIndicator' defined in class path
resource
[org/springframework/cloud/config/server/config/EnvironmentRepositoryConfiguration.class]:
Unsatisfied dependency expressed through method
'configServerHealthIndicator' parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.cloud.config.server.config.CompositeConfiguration':
Unsatisfied dependency expressed through method 'setEnvironmentRepos'
parameter 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultEnvironmentRepository' defined in class path
resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.>
2019-04-18 09:41:44,700 INFO
[org.apereo.cas.ticket.registry.HazelcastTicketRegistry] - <Shutting down
Hazelcast instance [localhost]>
2019-04-18 09:41:44,752 ERROR
[org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <
***************************
APPLICATION FAILED TO START
***************************
Description:
Invalid config server configuration.
Action:
If you are using the git profile, you need to set a Git URI in your
configuration. If you are using a native profile and have
spring.cloud.config.server.bootstrap=true, you need to use a composite
configuration.
>
18-Apr-2019 09:41:44.754 SEVERE [main]
org.apache.catalina.startup.HostConfig.deployWAR Erreur lors du
d├®ploiement de l'archive
[D:\edhec\web\tomcat\apache-tomcat-9.0.19\webapps\cas.war] de l'application
web
java.lang.IllegalStateException: Erreur lors du d├®marrage du conteneur
fils
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:716)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Echec de d├®marrage du
composant
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]]
at
org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
... 37 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'healthIndicatorRegistry' defined in class path
resource
[org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory
method 'healthIndicatorRegistry' threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'configServerHealthIndicator' defined in class path
resource
[org/springframework/cloud/config/server/config/EnvironmentRepositoryConfiguration.class]:
Unsatisfied dependency expressed through method
'configServerHealthIndicator' parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.cloud.config.server.config.CompositeConfiguration':
Unsatisfied dependency expressed through method 'setEnvironmentRepos'
parameter 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultEnvironmentRepository' defined in class path
resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:785)
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:407)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
at
org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 38 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to
instantiate
[org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory
method 'healthIndicatorRegistry' threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'configServerHealthIndicator' defined in class path
resource
[org/springframework/cloud/config/server/config/EnvironmentRepositoryConfiguration.class]:
Unsatisfied dependency expressed through method
'configServerHealthIndicator' parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.cloud.config.server.config.CompositeConfiguration':
Unsatisfied dependency expressed through method 'setEnvironmentRepos'
parameter 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultEnvironmentRepository' defined in class path
resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
... 60 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'configServerHealthIndicator' defined in class path
resource
[org/springframework/cloud/config/server/config/EnvironmentRepositoryConfiguration.class]:
Unsatisfied dependency expressed through method
'configServerHealthIndicator' parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.cloud.config.server.config.CompositeConfiguration':
Unsatisfied dependency expressed through method 'setEnvironmentRepos'
parameter 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultEnvironmentRepository' defined in class path
resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:602)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:590)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1226)
at
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorRegistryBeans.get(HealthIndicatorRegistryBeans.java:42)
at
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration.healthIndicatorRegistry(HealthIndicatorAutoConfiguration.java:73)
at
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$6159a44c.CGLIB$healthIndicatorRegistry$2(<generated>)
at
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$6159a44c$$FastClassBySpringCGLIB$$b963449f.invoke(<generated>)
at
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
at
org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$6159a44c.healthIndicatorRegistry(<generated>)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 61 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.cloud.config.server.config.CompositeConfiguration':
Unsatisfied dependency expressed through method 'setEnvironmentRepos'
parameter 0; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultEnvironmentRepository' defined in class path
resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:676)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)
... 85 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'defaultEnvironmentRepository' defined in class
path resource
[org/springframework/cloud/config/server/config/DefaultRepositoryConfiguration.class]:
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: You need to configure a uri for the git
repository.
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1463)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1427)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1318)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1205)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:668)
... 108 more
Caused by: java.lang.IllegalStateException: You need to configure a uri for
the git repository.
at org.springframework.util.Assert.state(Assert.java:73)
at
org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.afterPropertiesSet(JGitEnvironmentRepository.java:253)
at
org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.afterPropertiesSet(MultipleJGitEnvironmentRepository.java:66)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
... 121 more
2. Here is the working logs when I run the embedded version of the same
cas.war
D:\edhec\web\tomcat\apache-tomcat-9.0.19\webapps>java -jar cas.war
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.codehaus.groovy.reflection.CachedClass
(jar:file:/D:/edhec/web/tomcat/apache-tomcat-9.0.19/webapps/cas.war!/WEB-INF/lib/groovy-3.0.0-alpha-4.jar!/)
to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of
org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[36m
__ ____ _ ____ __
/ / / ___| / \ / ___| \ \
| | | | / _ \ \___ \ | |
| | | |___ / ___ \ ___) | | |
| | \____| /_/ \_\ |____/ | |
\_\ /_/
CAS Version: 6.1.0-RC3-SNAPSHOT
CAS Commit Id: 2a9ae09c7062398cb2b5975819ecb3616ab6fbd3
CAS Build Date/Time: 2019-04-17T13:55:45.595Z
Spring Boot Version: 2.2.0.M1
Spring Version: 5.1.6.RELEASE
Java Home: C:\Program Files\Java\jdk-11.0.2
Java Vendor: Oracle Corporation
Java Version: 11.0.2
JVM Free Memory: 228 MB
JVM Maximum Memory: 3 GB
JVM Total Memory: 370 MB
JCE Installed: Yes
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2019-04-17T16:14:50.022698700
OS Temp Directory: C:\Users\j_andre\AppData\Local\Temp\
------------------------------------------------------------
Apache Tomcat Version: Apache Tomcat/9.0.19
------------------------------------------------------------
[0m
2019-04-17 16:14:50,060 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- <Configuration files found at [\etc\cas\config] are [[file
[D:\etc\cas\config\cas.properties]]] under profile(s) [[standalone]]>
2019-04-17 16:14:50,135 INFO [org.apereo.cas.web.CasWebApplication] - <The
following profiles are active: standalone>
2019-04-17 16:14:56,706 WARN
[com.hazelcast.instance.HazelcastInstanceFactory] - <Hazelcast is starting
in a Java modular environment (Java 9 and newer) but without proper access
to required Java packages. Use additional Java arguments to provide
Hazelcast access to Java internal API. The internal API access is used to
get the best performance results. Arguments to be used:
--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.management/sun.management=ALL-UNNAMED --add-opens
jdk.management/com.sun.management.internal=ALL-UNNAMED>
2019-04-17 16:14:56,787 WARN [com.hazelcast.instance.AddressPicker] -
<[LOCAL] [dev] [3.11.2] You configured your member address as host name.
Please be aware of that your dns can be spoofed. Make sure that your dns
configurations are correct.>
2019-04-17 16:15:00,318 INFO [org.apereo.cas.util.CoreTicketUtils] -
<Ticket registry encryption/signing is turned off. This MAY NOT be safe in
a clustered production environment. Consider using other choices to handle
encryption, signing and verification of ticket registry tickets, and verify
the chosen ticket registry does support this behavior.>
2019-04-17 16:15:01,128 INFO
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] -
<Watching service registry directory at
[C:\Users\j_andre\AppData\Local\Temp\cas\services]>
2019-04-17 16:15:04,878 INFO
[org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration]
- <
Using generated security password: d5e4166b-c239-4665-81fb-84d483bfdc91
>
2019-04-17 16:15:05,078 INFO
[org.springframework.security.web.access.channel.ChannelProcessingFilter] -
<Validated configuration attributes>
2019-04-17 16:15:05,102 INFO
[org.springframework.security.web.DefaultSecurityFilterChain] - <Creating
filter chain: any request,
[org.springframework.security.web.access.channel.ChannelProcessingFilter@7d43f1c9,
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@5d67b2b3,
org.springframework.security.web.context.SecurityContextPersistenceFilter@51c6e775,
org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6c8d638a,
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@52e92f6,
org.springframework.security.web.authentication.AnonymousAuthenticationFilter@49bc71b4,
org.springframework.security.web.session.SessionManagementFilter@34ede267,
org.springframework.security.web.access.ExceptionTranslationFilter@62f6185a,
org.springframework.security.web.access.intercept.FilterSecurityInterceptor@40edc64e]>
2019-04-17 16:15:06,013 INFO
[org.apereo.cas.services.AbstractServicesManager] - <Loaded [2] service(s)
from [JsonServiceRegistry].>
2019-04-17 16:15:06,157 WARN
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for
encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to
auto-generate the encryption key>
2019-04-17 16:15:06,164 WARN
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated
encryption key [o_p_ooQK01otjTZCAjGH4RDzrhH60hBUVGiAUX_lt3g] of size [256]
for [Ticket-granting Cookie]. The generated key MUST be added to CAS
settings under setting [cas.tgc.crypto.encryption.key].>
2019-04-17 16:15:06,167 WARN
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for
signing is not defined for [Ticket-granting Cookie]. CAS will attempt to
auto-generate the signing key>
2019-04-17 16:15:06,167 WARN
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated signing
key
[pGIA1FjWxcDpgljbtfZ5veeOaS40fmh0FsVCjPAtH_PhCcowe6Z3AoNDzLG6YvOIdAMgXIUAFvqse_7g0rXvaQ]
of size [512] for [Ticket-granting Cookie]. The generated key MUST be added
to CAS settings under setting [cas.tgc.crypto.signing.key].>
2019-04-17 16:15:06,263 WARN
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for
signing is not defined under [cas.webflow.crypto.signing.key]. CAS will
attempt to auto-generate the signing key>
2019-04-17 16:15:06,263 WARN
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated signing
key
[XVQH5O38OZcc867OZwZ2d_8zUZEeEsJuW0BYb-GRH7d4Iw_MFZRC9iQUYAI44w2gjgkidxERqvg5tD85e_M2hQ]
of size [512]. The generated key MUST be added to CAS settings under
setting [cas.webflow.crypto.signing.key].>
2019-04-17 16:15:06,264 WARN
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for
encryption is not defined under [cas.webflow.crypto.encryption.key]. CAS
will attempt to auto-generate the encryption key>
2019-04-17 16:15:06,265 WARN
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated
encryption key [7uLcJC4WFw8Ii-3jvdQhAQ] of size [16]. The generated key
MUST be added to CAS settings under setting
[cas.webflow.crypto.encryption.key].>
2019-04-17 16:15:06,700 INFO [org.apereo.cas.web.CasWebApplication] -
<Started CasWebApplication in 18.79 seconds (JVM running for 21.639)>
2019-04-17 16:15:06,721 INFO
[org.apereo.cas.services.AbstractServicesManager] - <Loaded [2] service(s)
from [JsonServiceRegistry].>
2019-04-17 16:15:06,721 INFO
[org.apereo.cas.support.events.listener.DefaultCasEventListener] - < [36m>
2019-04-17 16:15:06,723 INFO
[org.apereo.cas.support.events.listener.DefaultCasEventListener] - <
____ _____ _ ____ __ __
| _ \ | ____| / \ | _ \ \ \ / /
| |_) | | _| / _ \ | | | | \ V /
| _ < | |___ / ___ \ | |_| | | |
|_| \_\ |_____| /_/ \_\ |____/ |_|
>
2019-04-17 16:15:06,723 INFO
[org.apereo.cas.support.events.listener.DefaultCasEventListener] - < [0m>
2019-04-17 16:15:06,723 INFO
[org.apereo.cas.support.events.listener.DefaultCasEventListener] - <Ready
to process requests @ [2019-04-17T14:15:06.713Z]>
Do I have miss something ?
Thanks for your help !
Jeremy
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fd8fda06-ceaa-441d-9609-6618492f883a%40apereo.org.