--
- 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 cas-user+u...@apereo.org.
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.
Hi there.Change version of CAS to 6.2 RC2 in gradle.properties like so:cas.version=6.2.0-RC2Best,D.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-...@apereo.org.
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here to report this email as spam.
=
Hi all,I am trying to modify the overlay from
from the CAS overlay directory that i downloaded from gitbub.
I have changed my gradle.propertiesto cas.version=6.2.0-RC2(I copied it right from the posting. )
and I get:
Could not resolve org.apereo.cas:cas-server-core-api-configuration-model:6.2.0-RC2.
I am running ./gradlew from the command line.
When I run it from the docker-build file it works but I can't use that all the time. I want to configure the CAS war to suit my needs and I think I need to do that with gradlew.I looked through the docker build to see if I could reverse engineer it to get the right things in place so it can find what it needs to run from the command line with ./gradlew only.
Thanks,Tom
--
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/e47d9581-76c8-48ad-b242-827231098026%40apereo.org.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4dd2efa5007b513fd2b26616919d51f6ac3b029c.camel%40uvic.ca.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4e82b31f-2154-433e-8808-45f9ddf50ef4%40Spark.
./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
You might want to run it with —info or —debug flag to see what might be failing, like so:./gradlew run —infoor build and run as two separate steps:./gradlew clean buildjava -jar build/libs/cas.warD.
[...]
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
compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
When I deploy the cas.war in tomcat9, it doesn't work.
I have 404 not found in the browser...
Do you have an idea ?
Best regards,
Jérémie
[...]
[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
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
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.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAM25OR9ZXbBsE6jOYRvLHw2Qk6Pw8bydWKmPO-YgVOpAiSWLbQ%40mail.gmail.com.
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.
--
- 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 cas-...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAM25OR9ZXbBsE6jOYRvLHw2Qk6Pw8bydWKmPO-YgVOpAiSWLbQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bec94153-7c6a-43d2-a3e6-a17349c05c7d%40apereo.org.
/var/log/
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bec94153-7c6a-43d2-a3e6-a17349c05c7d%40apereo.org.
dependencies {
// Other CAS dependencies/modules may be listed here...
// implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-pm-ldap:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-pm-webflow:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-saml:${project.'cas.version'}"
}
--
root@debian10:~# ps aux | grep tomcat
tomcat 9793 1.9 3.6 14146344 1197524 ? Ssl 17:07 1:06 /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat9 -Dcatalina.home=/usr/share/tomcat9 -Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start
root 10085 0.0 0.0 6144 896 pts/0 S+ 18:03 0:00 grep tomcat
--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/d1fb4904d98bd038ef7614a1ba3fd6e33f4963c4.camel%40uvic.ca.
Hi,
did you try to do :
./gradlew clean build ?
Which version did you download ? 6.3 ? or the last 6.6 ?
Jérémie
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
--
Hi. Thanks for you answer, i’ve success to build the war ; It’s a new deploy.
Envoyé à partir de Courrier pour Windows
De : Ray Bon
Envoyé le :lundi 20 juin 2022 17:00
À : cas-...@apereo.org
Cc : jerem....@gmail.com; dkopy...@unicon.net
Objet :Re: [cas-user] 6.2.x Gradle Compilation
This email has been scanned for spam and viruses by Proofpoint Essentials. Click here to report this email as spam.
=
--
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca
I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.
--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/471893d591fe7971c3cc4665061db4ff81dd4108.camel%40uvic.ca.