The same by changing *cas.serviceRegistry.config.location=file:/etc/cas/services* by *cas.serviceRegistry.json.location=file:/etc/cas/services*
Jérémie Le mar. 11 févr. 2020 à 14:49, Jérémie Pilette <[email protected]> a écrit : > Hi Ray, > thank you for your response. > I have uncommented the line *cas.serviceRegistry.config.location: > file:/etc/cas/services*.(/ets/cas/config) > But it doen't make anaything. > I have change the owner too > chown -R tomcat:tomcat /etc/cas/services. No > changes... > Here this my *catalina.log* : > > [...] > [2020-02-11 13:26:52] [info] Starting Servlet engine: [Apache Tomcat/9.0. > 16 (Debian)] > [2020-02-11 13:26:52] [info] Deploying deployment descriptor [/etc/tomcat9 > /Catalina/localhost/manager.xml] > [2020-02-11 13:26:52] [warning] The path attribute with value [/manager] > in deployment descriptor [/etc/tomcat9/Catalina/localhost/manager.xml] has > been ignored > [2020-02-11 13:26:52] [info] At least one JAR was scanned for TLDs yet > contained no TLDs. Enable debug logging for this logger for a complete list > of JARs that were scanned but no TLDs were found in them. Skipping unneeded > JARs during scanning can improve startup time and JSP compilation time. > [2020-02-11 13:26:52] [info] Deployment of deployment descriptor > [/etc/tomcat9/Catalina/localhost/manager.xml] has finished in [485] ms > [2020-02-11 13:26:52] [info] Deploying deployment descriptor > [/etc/tomcat9/Catalina/localhost/host-manager.xml] > [...] > [...] > [2020-02-11 13:26:58] [info] #033[32m2020-02-11 13:26:58,338 INFO > [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] > - <Configuration files found at [/etc/cas/config] are [[file > [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>#033[m > [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,366 main ERROR > RollingFileManager (/var/log/cas.log) java.io.FileNotFoundException: /var/ > log/cas.log (Permission denied) java.io.FileNotFoundException: /var/log/ > cas.log (Permission denied) > [...] > [...] > [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,369 main ERROR Could not > create plugin of type class > org.apache.logging.log4j.core.appender.RollingFileAppender for element > RollingFile: java.lang.IllegalStateException: ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] > unable to create manager for [/var/log/cas.log] with data > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@79a5298f[pattern=/var/log/cas-%d{yyyy-MM-dd-HH}-%i.log, > append=true, bufferedIO=true, bufferSize=8192, > policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, > SizeBasedTriggeringPolicy(size=10485760), > TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, > modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, > useMax=true), advertiseURI=null, layout=%d %p [%c] - <%m>%n, > filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: > ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] > unable to create manager for [/var/log/cas.log] with data > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@79a5298f[pattern=/var/log/cas-%d{yyyy-MM-dd-HH}-%i.log, > append=true, bufferedIO=true, bufferSize=8192, > policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, > SizeBasedTriggeringPolicy(size=10485760), > TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, > modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, > useMax=true), advertiseURI=null, layout=%d %p [%c] - <%m>%n, > filePermissions=null, fileOwner=null]] > [...] > [...] > [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,370 main ERROR Unable to > invoke factory method in class > org.apache.logging.log4j.core.appender.RollingFileAppender for element > RollingFile: java.lang.IllegalStateException: No factory method found for > class org.apache.logging.log4j.core.appender.RollingFileAppender > java.lang.IllegalStateException: No factory method found for class > org.apache.logging.log4j.core.appender.RollingFileAppender > [...] > [...] > [info] 2020-02-11 13:26:58,371 main ERROR RollingFileManager > (/var/log/cas_audit.log) java.io.FileNotFoundException: > /var/log/cas_audit.log (Permission denied) java.io.FileNotFoundException: > /var/log/cas_audit.log (Permission denied) > [...] > [...] > [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,372 main ERROR Could not > create plugin of type class > org.apache.logging.log4j.core.appender.RollingFileAppender for element > RollingFile: java.lang.IllegalStateException: ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] > unable to create manager for [/var/log/cas_audit.log] with data > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@7b9ab81c[pattern=/var/log/cas_audit-%d{yyyy-MM-dd-HH}-%i.log, > append=true, bufferedIO=true, bufferSize=8192, > policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, > SizeBasedTriggeringPolicy(size=10485760), > TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, > modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, > useMax=true), advertiseURI=null, layout=%d %p [%c] - %m%n, > filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: > ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] > unable to create manager for [/var/log/cas_audit.log] with data > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@7b9ab81c[pattern=/var/log/cas_audit-%d{yyyy-MM-dd-HH}-%i.log, > append=true, bufferedIO=true, bufferSize=8192, > policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, > SizeBasedTriggeringPolicy(size=10485760), > TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, > modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, > useMax=true), advertiseURI=null, layout=%d %p [%c] - %m%n, > filePermissions=null, fileOwner=null]] > [...] > [...] > [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,373 main ERROR Unable to > invoke factory method in class > org.apache.logging.log4j.core.appender.RollingFileAppender for element > RollingFile: java.lang.IllegalStateException: No factory method found for > class org.apache.logging.log4j.core.appender.RollingFileAppender > java.lang.IllegalStateException: No factory method found for class > org.apache.logging.log4j.core.appender.RollingFileAppender > [...] > [...] > [2020-02-11 13:26:58] [info] #033[32m2020-02-11 13:26:58,399 INFO > [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following > profiles are active: standalone>#033[m > [2020-02-11 13:27:01] [info] #033[33m2020-02-11 13:27:01,525 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 'tomcatServletWebServerFactory' defined in class > path resource > [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: > Initialization of bean failed; nested exception is > java.lang.NoSuchMethodError: 'void > org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)'>#033[m > [2020-02-11 13:27:01] [info] #033[1;31m2020-02-11 13:27:01,529 ERROR > [org.springframework.boot.context.properties.migrator.PropertiesMigrationListener] > - < > [2020-02-11 13:27:01] [info] The use of configuration keys that are no > longer supported was found in the environment: > [2020-02-11 13:27:01] [info] Property source > 'bootstrapProperties-applicationProfilesCompositeProperties': > [2020-02-11 13:27:01] [info] #011Key: cas.service-registry.config.location > [2020-02-11 13:27:01] [info] #011#011Reason: Property renamed due to > cas.service-registry.json.location instead. > [2020-02-11 13:27:01] [info] Please refer to the migration guide or > reference guide for potential alternatives. > [2020-02-11 13:27:01] [info] >#033[m > [2020-02-11 13:27:01] [info] #033[1;31m2020-02-11 13:27:01,540 ERROR > [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - < > [2020-02-11 13:27:01] [info] *************************** > [2020-02-11 13:27:01] [info] APPLICATION FAILED TO START > [2020-02-11 13:27:01] [info] *************************** > Description: > [2020-02-11 13:27:01] [info] An attempt was made to call a method that > does not exist. The attempt was made from the following location: > [2020-02-11 13:27:01] [info] > org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.customizeRemoteIpValve(TomcatWebServerFactoryCustomizer.java:189) > [2020-02-11 13:27:01] [info] The following method did not exist: > [2020-02-11 13:27:01] [info] 'void > org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)' > [2020-02-11 13:27:01] [info] The method's class, > org.apache.catalina.valves.RemoteIpValve, is available from the following > locations: > [2020-02-11 13:27:01] [info] > jar:file:/usr/share/java/tomcat9-catalina-9.0.16.jar!/org/apache/catalina/valves/RemoteIpValve.class > [2020-02-11 13:27:01] [info] > jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-catalina-9.0.30.jar!/org/apache/catalina/valves/RemoteIpValve.class > [2020-02-11 13:27:01] [info] > jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-embed-core-9.0.30.jar!/org/apache/catalina/valves/RemoteIpValve.class > [2020-02-11 13:27:01] [info] It was loaded from the following location: > [2020-02-11 13:27:01] [info] > file:/usr/share/java/tomcat9-catalina-9.0.16.jar > [2020-02-11 13:27:01] [info] Action: > [2020-02-11 13:27:01] [info] Correct the classpath of your application so > that it contains a single, compatible version of > org.apache.catalina.valves.RemoteIpValve > [2020-02-11 13:27:01] [info] >#033[m > [2020-02-11 13:27:01] [crit] Error deploying web application archive > [/var/lib/tomcat9/webapps/cas.war] > [2020-02-11 13:27:01] [crit] java.lang.IllegalStateException: Error > starting child > [...] > [...] > [2020-02-11 13:27:01] [crit] Caused by: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]] > [2020-02-11 13:27:01] [crit] at > org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441) > [2020-02-11 13:27:01] [crit] at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) > [2020-02-11 13:27:01] [crit] at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713) > [2020-02-11 13:27:01] [crit] ... 37 more > [2020-02-11 13:27:01] [crit] Caused by: > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'tomcatServletWebServerFactory' defined in class path > resource > [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: > Initialization of bean failed; nested exception is > java.lang.NoSuchMethodError: 'void > org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)' > > > > Jérémie > > > Le lundi 10 février 2020 17:50:56 UTC+1, rbon a écrit : >> >> Jérémie, >> >> That means that 'cas.serviceregistry.config.location' is not a property. >> See properties here, >> https://apereo.github.io/cas/6.1.x/configuration/Configuration-Properties.html#service-registry, >> for 6.1.x >> >> 'config.location' is not there. >> Also, it is 'serviceRegistry'. >> >> Ray >> >> On Sun, 2020-02-09 at 05:04 -0800, Jérémie Pilette wrote: >> >> Sorry for the secondly part of my previous message. >> It was not the good command line. >> >> With the good command line I have this : >> >> [...] >> 2020-02-09 12:54:49,372 ERROR [org.apereo.cas.configuration. >> CasConfigurationPropertiesValidator] - < >> Failed to bind properties under 'cas' to org.apereo.cas.configuration. >> CasConfigurationProperties >> >> cas.serviceregistry.config.location = file:/etc/cas/services ( >> Origin: "cas.serviceRegistry.config.location" from property source >> "bootstrapProperties-applicationProfilesCompositeProperties") >> >> Listed settings above are no longer recognized by CAS 6.2.0-RC2. They >> may have been renamed, removed, or relocated to a new address in the CAS >> configuration schema. CAS will ignore such settings and will proceed with >> its normal initialization sequence. Please consult the CAS documentation >> to review and adjust each setting to find an alternative or remove the >> definition. Failure to do so puts the stability of the CAS server >> deployment in danger and complicates future upgrades. >> > >> [...] >> > Task :run FAILED >> :run (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took >> 13.924 secs. >> >> FAILURE: Build failed with an exception. >> >> * Where: >> Script '/home/xxxx/bin/cas-overlay-template-6.2/gradle/tasks.gradle' line >> : 64 >> >> * What went wrong: >> Execution failed for task ':run'. >> > Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' >> finished with non-zero exit value 1 >> >> * Try: >> Run with --stacktrace option to get the stack trace. Run with --debug >> option to get more log output. Run with --scan to get full insights. >> >> * Get more help at https://help.gradle.org >> >> Deprecated Gradle features were used in this build, making it >> incompatible with Gradle 7.0. >> Use '--warning-mode all' to show the individual deprecation warnings. >> See https:// >> docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings >> >> BUILD FAILED in 15s >> 5 actionable tasks: 3 executed, 2 up-to-date >> >> >> >> Le dimanche 9 février 2020 12:29:13 UTC+1, Jérémie Pilette a écrit : >> >> Hello, >> >> Thanks for your response. >> I come back to (try) to finished my installation... >> >> I have succeed in compiling, but I have an error when I try to deploy on >> tomcat9. >> >> First, is that possible to use *Tomcat-9.0.16* knowing that in >> gradle.properties it is written *tomcatVersion=9.0.30* (On debian >> package)? >> >> Secondly, this is what I have with *./gradlew run —info* >> >> ./gradlew run —info >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> Task '—info' not found in root project 'cas'. >> >> * Try: >> Run gradlew tasks to get a list of available tasks. Run with --stacktrace >> option to get the stack trace. Run with --info or --debug option to get >> more log output. Run with --scan to get full insights. >> >> * Get more help at https://help.gradle.org >> >> Deprecated Gradle features were used in this build, making it >> incompatible with Gradle 7.0. >> Use '--warning-mode all' to show the individual deprecation warnings. >> See https:// >> docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings >> >> BUILD FAILED in 463ms >> >> Many thanks to you, >> >> Jérémie >> >> >> Le jeudi 2 janvier 2020 20:59:28 UTC+1, Dmitriy Kopylenko a écrit : >> >> You might want to run it with —info or —debug flag to see what might be >> failing, like so: >> >> ./gradlew run —info >> >> or build and run as two separate steps: >> >> ./gradlew clean build >> java -jar build/libs/cas.war >> >> D. >> >> >> From: Jérémie Pilette <[email protected]> >> Reply: Jérémie Pilette <[email protected]> >> Date: January 2, 2020 at 2:47:55 PM >> To: CAS Community <[email protected]> >> Cc: [email protected] <[email protected]> >> Subject: Re: [cas-user] 6.2.x Gradle Compilation >> >> Hi Dmitriy, >> thank you. >> Now I have another ailed : >> >> > Task :run FAILED >> >> FAILURE: Build failed with an exception. >> >> * Where: >> Script '/home/USER/bin/cas-overlay-template/gradle/tasks.gradle' line: 57 >> >> * What went wrong: >> Execution failed for task ':run'. >> > Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' >> finished with non-zero exit value 1 >> >> * Try: >> Run with --stacktrace option to get the stack trace. Run with --info or >> --debug option to get more log output. Run with --scan to get full insights. >> >> * Get more help at https://help.gradle.org >> >> Deprecated Gradle features were used in this build, making it >> incompatible with Gradle 7.0. >> Use '--warning-mode all' to show the individual deprecation warnings. >> See >> https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings >> >> Thank you, >> Jérémie >> >> >> Le jeudi 2 janvier 2020 14:24:48 UTC+1, Dmitriy Kopylenko a écrit : >> >> Hi there. >> >> Change version of CAS to 6.2 RC2 in gradle.properties like so: >> >> *cas.version=6.2.0-RC2* >> >> Best, >> D. >> >> >> From: Jérémie Pilette <[email protected]> >> Reply: [email protected] <[email protected]> >> Date: January 2, 2020 at 7:57:00 AM >> To: CAS Community <[email protected]> >> Subject: [cas-user] 6.2.x Gradle Compilation >> >> Hi everybody, >> I have a problem with my first compilation of cas-overlay-template (6.2.x) >> >> Here this is my messages : >> >> FAILURE: Build failed with an exception. >> A problem occurred evaluating root project 'cas'. >> > Could not resolve all artifacts for configuration 'classpath'. >> > Could not find >> org.apereo.cas:cas-server-core-api-configuration-model:6.2.0-SNAPSHOT. >> [...] >> Could not find >> org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0-SNAPSHOT. >> Searched in the following locations: >> [...] >> >> >> Do you have an idea please ? >> >> Jérémie >> -- >> - 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/5f89af02-21ff-4d66-82ca-73474ffb4b52%40apereo.org >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5f89af02-21ff-4d66-82ca-73474ffb4b52%40apereo.org?utm_medium=email&utm_source=footer> >> . >> >> >> >> >> ------------------------------ >> >> This email has been scanned for spam and viruses by Proofpoint >> Essentials. Click here >> <https://us2.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1577994474-hk1Nk1kKYSlm&r_address=dkopylenko%40unicon.net&report=1> >> to report this email as spam. >> >> >> -- >> >> Ray Bon >> Programmer Analyst >> Development Services, University Systems >> 2507218831 | CLE 019 | [email protected] >> >> I respectfully acknowledge that my place of work is located within the >> ancestral, traditional and unceded territory of the Songhees, Esquimalt and >> WSÁNEĆ Nations. >> > -- > - 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/10fb447e-8d1f-4510-8513-b098ace772c0%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/10fb447e-8d1f-4510-8513-b098ace772c0%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - 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/CAM25OR9ZXbBsE6jOYRvLHw2Qk6Pw8bydWKmPO-YgVOpAiSWLbQ%40mail.gmail.com.
