Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-09 Thread Ray Bon
Jérémie,

I do not see anything amiss with that file.

You could comment out the CasAppender s and change all AppenderRef s to point 
directly to the Appenders


becomes


Ray

On Fri, 2024-02-09 at 18:05 +0100, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Here this my log4j2.xml file from the cas-overlay template (after compilation)
```





/var/log/cas
trace
warn
info
warn
warn
warn
warn
warn
warn
warn
warn
true
false

casStackTraceFile
false







































































































































``

Le ven. 9 févr. 2024 à 17:09, Ray Bon mailto:r...@uvic.ca>> a 
écrit :
Jérémie,

'CasAppender' is defined in the log4j2.xml
So it looks like cas is able to find the file, but not able to process it; 
hence, no log output.
CasAppender is an indirection for the defined appender(s) above it:




...




Are the definitions of the appenders missing or somehow corrupt?


Ray

On Fri, 2024-02-09 at 09:49 +0100, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi Ray,
```
root@pc:/var/lib/tomcat10# ls -l
total 12
lrwxrwxrwx 1 root   root 13 10 oct.  18:33 conf -> /etc/tomcat10
```
So what I see in /etc/tomcat10 is the same as /var/lib/tomcat10/conf. OK for 
that.
About logs in /var/log/tomcat10 :
catalina.out
localhost_access_log.2024-02-09.txt

About catalina.out, when I restart tomcat (systemctl restart tomcat10)
```
[2024-02-09 09:47:39] [info] 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
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casConsole" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casStackTraceFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casConsole" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casFile" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casAudit" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] Le déploiement de l'archive de l'application web 
[/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 955] ms
```

About  localhost_access_log.2024-02-09.txt
```
192.168.1.xx - - [09/Feb/2024:08:32:35 +0100] "GET /DevMgmt/DiscoveryTree.xml 
HTTP/1.1" 404 719
```

Thank you,
Jérémie


Re: [cas-user] Re: why is redirecting to cas.example.org:8443 instead of using cas.server.name host

2024-02-09 Thread Ray Bon
Mohamed,

The only change I made to build.gradle was add the ldap repository dependency. 
You do not need to adjust the security filter chain.

The version in getcas... is 6.6.4
Is this the version you are using?

Sorry, I forgot to say that management.properties is in etc/cas/config/
It is a basic file to run when no dependencies are selected.
You can edit this file and the build process will [try to] place it in 
/etc/cas/config - cas management will look for it there by default.
You can also copy this file to a directory of your choosing and tell cas 
management to look there with tomcat/jvm startup options or placed in 
TOMCAT_HOME/bin/setenv.sh
As an example, this is in my setenv

JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS \
--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"
export JDK_JAVA_OPTS

CATALINA_OPTS="$CATALINA_OPTS 
-Dspring.config.additional-location=/etc/cas/config/bootstrap.yml,classpath:/application.yml,/etc/cas/config/application.properties,/etc/cas/config/management.properties"
export CATALINA_OPTS

Ray


On Fri, 2024-02-09 at 16:50 +0100, Mohamed Amdouni wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi Ray,

Would it be possible to share with me your build.gradke the dependencies 
section.

I think that I miss the dependency that contains the definition of the security 
filter chain.

Best regards.

Le mer. 7 févr. 2024 à 19:15, Mohamed Amdouni 
mailto:me.amdo...@gmail.com>> a écrit :
You mean 6.4? The only version available in
https://getcas.apereo.org/ui when choosing cas management is 6.4

Will try the cas.server.scope

Thanks

Le mer. 7 févr. 2024 à 19:09, Ray Bon mailto:r...@uvic.ca>> a 
écrit :
Mohamed,

In my cas-management 6.5, I have this in management.properties which I place in 
/etc/cas/config
cas.server.name=https://${cas.server.scope}
cas.server.prefix=${cas.server.name}/cas

logging.config: file:/etc/cas/config/log4j2-management.xml

mgmt.server-name=${cas.server.name}

where cas.server.scope=local.uvic.ca

The default files and their properties come from the main project.

Ray

On Wed, 2024-02-07 at 08:28 -0800, Mohamed Amdouni wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hello,

I have the same problem with CAS management.

Try to connect to https://localhost:8443/cas-management/ redirects me to 
cas.example.org:8443/cas/login?service....
Even with management.properties updated with cas server.

In the log file I see that it loads an application.properties/ 
management.properties and bootstrap.properties from the classpath, containing 
properties with heroku. adress etc

I don't know from where it generates this file when building from overlay 
project... I have only an empty application.yml in the project sources.

I'm using an extrenal application.properties referenced by 
spring.config.location

My questions are :

- where to find the property with cas.example.org?
- how to avoid adding application.properties when building the project?
- Does the laste version of cas-management (6.4) requires to add a FilterChain 
bean because in the log it is using the default FilterChain with Ant pattern = 
'/**' ->
messsage from log : "Will secure Ant (pattern='/**')"


Thank you



Le jeudi 28 décembre 2023 à 15:50:58 UTC+1, figurefigure mix a écrit :
logs below
```bash
2023-12-28 09:14:21,578 DEBUG 
[org.apereo.cas.support.saml.DefaultOpenSamlConfigBean] - 
2023-12-28 09:14:21,623 INFO [org.apereo.cas.util.io.PathWatcherService] - 

2023-12-28 09:14:21,625 DEBUG 
[org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] - 
https://cas.example.org:8443]>
2023-12-28 09:14:21,639 DEBUG 
[org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] - 

2023-12-28 09:14:21,665 INFO [org.apereo.cas.mgmt.factory.FormDataFactory] - 

2023-12-28 09:14:21,728 DEBUG 
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 

2023-12-28 09:14:21,729 DEBUG 
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 

2023-12-28 09:14:21,817 WARN [org.pac4j.core.matching.matcher.PathMatcher] - 

2023-12-28 09:14:21,862 WARN 
[org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration]
 - <
```

On Wednesday, December 27, 2023 at 10:04:43 AM UTC+1 figurefigure mix wrote:


org.apereo.cas
cas-mgmt-webapp-tomcat
${mgmt.version}
war
runtime



once i run it with 

Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-09 Thread Ray Bon
Jérémie,

'CasAppender' is defined in the log4j2.xml
So it looks like cas is able to find the file, but not able to process it; 
hence, no log output.
CasAppender is an indirection for the defined appender(s) above it:




...




Are the definitions of the appenders missing or somehow corrupt?


Ray

On Fri, 2024-02-09 at 09:49 +0100, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi Ray,
```
root@pc:/var/lib/tomcat10# ls -l
total 12
lrwxrwxrwx 1 root   root 13 10 oct.  18:33 conf -> /etc/tomcat10
```
So what I see in /etc/tomcat10 is the same as /var/lib/tomcat10/conf. OK for 
that.
About logs in /var/log/tomcat10 :
catalina.out
localhost_access_log.2024-02-09.txt

About catalina.out, when I restart tomcat (systemctl restart tomcat10)
```
[2024-02-09 09:47:39] [info] 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
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing 
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casConsole" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casStackTraceFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casConsole" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casFile" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate 
appender "casAudit" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] Le déploiement de l'archive de l'application web 
[/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 955] ms
```

About  localhost_access_log.2024-02-09.txt
```
192.168.1.xx - - [09/Feb/2024:08:32:35 +0100] "GET /DevMgmt/DiscoveryTree.xml 
HTTP/1.1" 404 719
```

Thank you,
Jérémie

Le jeu. 8 févr. 2024 à 16:31, Ray Bon mailto:r...@uvic.ca>> a 
écrit :
Jérémie,

/etc/tomcat10 is the 'conf' directory. It may be a sym link to 
/var/lib/tomcat10/conf see 
https://packages.debian.org/bookworm/all/tomcat10/filelist

tomcat will write its logs to /var/lib/tomcat10/logs (see 
/etc/tomcat10/logging.properties).
What do the logs in /var/lib/tomcat10/logs say?

Ray

On Thu, 2024-02-08 at 06:21 -0800, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi Ray,

I have installed Tomcat 10.1.6 with apt-get install tomcat10.
Here the repository of tomcat10 (/etc/tomcat10) :

drwxrwxr-x 3 root tomcat   4096  2 févr. 10:13 Catalina
-rw-r- 1 root tomcat   7693 19 févr.  2023 catalina.properties
-rw-r- 1 root tomcat   1411 19 févr.  2023 context.xml
-rw-r- 1 root tomcat   1149 19 févr.  2023 jaspic-providers.xml
-rw-r- 1 root tomcat   2799  9 oct.  23:21 logging.properties
drwxr-xr-x 2 root tomcat   4096  2 févr. 10:12 policy.d
-rw-r- 1 root tomcat   6755 10 oct.  18:33 server.xml
-rw-r- 1 root tomcat   2780  2 févr. 12:33 tomcat-users.xml
-rw-r- 1 root tomcat 172414 19 févr.  2023 web.xml

I use the URL : http://my_host:8080/cas

CAS webapp est deployed in .var/lib/tomcat10/webapps/cas

I have the Error 404 of Tomcat without information.

About logsn even ig log4j2.xml is configured in /etc/cas/config/ to display 
logs in /var/lib/cas/cas.log, I have nothing.

Even if I use java 21 from Oracle instead of openjdk-21-jdk, it should works.

Is that possible that the problems comes from the cas.properties files ? I 
think my file is good 

Thank you,

Jérémie


Le mercredi 7 février 2024 à 03:51:39 UTC+1, Ray Bon a écrit :
Jérémie,

Are there any files in TOMCAT_HOME/logs ?
(Could also be CATALINA_HOME or CATALINA_BASE)

A pristine clone of cas-overlay-template should display the login page at 
http://localhost:8080/cas/login

What URL are you using that you get 404?

What does java -version say?
How are you deploying to tomcat (tomcat built in deployer, copy to 

Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-09 Thread Jérémie Pilette
Here this my log4j2.xml file from the cas-overlay template (after
compilation)
```





/var/log/cas
trace
warn
info
warn
warn
warn
warn
warn
warn
warn
warn
true
false

casStackTraceFile
false







































































































































``

Le ven. 9 févr. 2024 à 17:09, Ray Bon  a écrit :

> Jérémie,
>
> 'CasAppender' is defined in the log4j2.xml
> So it looks like cas is able to find the file, but not able to process it;
> hence, no log output.
> CasAppender is an indirection for the defined appender(s) above it:
>
> 
>  alwaysWriteExceptions="${sys:log.console.stacktraces}"/>
> 
> ...
> 
> 
> 
>
> Are the definitions of the appenders missing or somehow corrupt?
>
>
> Ray
>
> On Fri, 2024-02-09 at 09:49 +0100, Jérémie Pilette wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Hi Ray,
> ```
> root@pc:/var/lib/tomcat10# ls -l
> total 12
> lrwxrwxrwx 1 root   root 13 10 oct.  18:33 conf -> /etc/tomcat10
> ```
> So what I see in /etc/tomcat10 is the same as /var/lib/tomcat10/conf. OK
> for that.
> About logs in /var/log/tomcat10 :
> catalina.out
> localhost_access_log.2024-02-09.txt
>
> About catalina.out, when I restart tomcat (systemctl restart tomcat10)
> ```
> [2024-02-09 09:47:39] [info] 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
> [2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
> element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
> [2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
> element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
> [2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
> element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
> [2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
> element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casFile" for logger config "root"
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casConsole" for logger config "root"
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casStackTraceFile" for logger config "root"
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casConsole" for logger config "org.apereo.inspektr"
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casFile" for logger config "org.apereo.inspektr"
> [2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
> appender "casAudit" for logger config "org.apereo.inspektr"
> [2024-02-09 09:47:41] [info] Le déploiement de l'archive de l'application
> web [/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 955] ms
> ```
>
> About  localhost_access_log.2024-02-09.txt
> ```
> 192.168.1.xx - - [09/Feb/2024:08:32:35 +0100] "GET
> /DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
> ```
>
> Thank you,
> Jérémie
>
> Le jeu. 8 févr. 2024 à 16:31, Ray Bon  a écrit :
>
> Jérémie,
>
> /etc/tomcat10 is the 'conf' directory. It may be a sym link to
> /var/lib/tomcat10/conf see
> 

Re: [cas-user] Re: why is redirecting to cas.example.org:8443 instead of using cas.server.name host

2024-02-09 Thread Mohamed Amdouni
Hi Ray,

Would it be possible to share with me your build.gradke the dependencies
section.

I think that I miss the dependency that contains the definition of the
security filter chain.

Best regards.

Le mer. 7 févr. 2024 à 19:15, Mohamed Amdouni  a
écrit :

> You mean 6.4? The only version available in
> https://getcas.apereo.org/ui when choosing cas management is 6.4
>
> Will try the cas.server.scope
>
> Thanks
>
> Le mer. 7 févr. 2024 à 19:09, Ray Bon  a écrit :
>
>> Mohamed,
>>
>> In my cas-management 6.5, I have this in management.properties which I
>> place in /etc/cas/config
>> cas.server.name=https://${cas.server.scope}
>> cas.server.prefix=${cas.server.name}/cas
>>
>> logging.config: file:/etc/cas/config/log4j2-management.xml
>>
>> mgmt.server-name=${cas.server.name}
>>
>> where cas.server.scope=local.uvic.ca
>>
>> The default files and their properties come from the main project.
>>
>> Ray
>>
>> On Wed, 2024-02-07 at 08:28 -0800, Mohamed Amdouni wrote:
>>
>> Notice: This message was sent from outside the University of Victoria
>> email system. Please be cautious with links and sensitive information.
>>
>>
>> Hello,
>>
>> I have the same problem with CAS management.
>>
>> Try to connect to https://localhost:8443/cas-management/ redirects me to
>> cas.example.org:8443/cas/login?service
>> Even with management.properties updated with cas server.
>>
>> In the log file I see that it loads an application.properties/
>> management.properties and bootstrap.properties from the classpath,
>> containing properties with heroku. adress etc
>>
>> I don't know from where it generates this file when building from overlay
>> project... I have only an empty application.yml in the project sources.
>>
>> I'm using an extrenal application.properties referenced by
>> spring.config.location
>>
>> My questions are :
>>
>> - where to find the property with cas.example.org?
>> - how to avoid adding application.properties when building the project?
>> - Does the laste version of cas-management (6.4) requires to add a
>> FilterChain bean because in the log it is using the default FilterChain
>> with Ant pattern = '/**' ->
>> messsage from log : "Will secure Ant (pattern='/**')"
>>
>>
>> Thank you
>>
>>
>>
>> Le jeudi 28 décembre 2023 à 15:50:58 UTC+1, figurefigure mix a écrit :
>>
>> logs below
>> ```bash
>> 2023-12-28 09:14:21,578 DEBUG
>> [org.apereo.cas.support.saml.DefaultOpenSamlConfigBean] - > OpenSaml successfully.>
>> 2023-12-28 09:14:21,623 INFO [org.apereo.cas.util.io.PathWatcherService]
>> - 
>> 2023-12-28 09:14:21,625 DEBUG
>> [org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] -
>> > https://cas.example.org:8443]>
>> 2023-12-28 09:14:21,639 DEBUG
>> [org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] -
>> > defined>
>> 2023-12-28 09:14:21,665 INFO
>> [org.apereo.cas.mgmt.factory.FormDataFactory] - > cas/actuator/discoveryProfile disabled by management configuration.  Using
>> default FormData values.>
>> 2023-12-28 09:14:21,728 DEBUG
>> [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] -
>> 
>> 2023-12-28 09:14:21,729 DEBUG
>> [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] -
>> 
>> 2023-12-28 09:14:21,817 WARN
>> [org.pac4j.core.matching.matcher.PathMatcher] - > 'excludeBranch' or 'excludeRegex' methods. They use regular expressions and
>> their definitions may be error prone. You could exclude more URLs than
>> expected.>
>> 2023-12-28 09:14:21,862 WARN
>> [org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration]
>> - <
>> ```
>>
>> On Wednesday, December 27, 2023 at 10:04:43 AM UTC+1 figurefigure mix
>> wrote:
>>
>> 
>> 
>> org.apereo.cas
>> cas-mgmt-webapp-tomcat
>> ${mgmt.version}
>> war
>> runtime
>> 
>> 
>>
>> once i run it with `java -jar cas-management.jar
>> --spring.profiles.active=management` and I open it url
>> `localhost:8443/cas-management` it redirect me on `
>> https://cas.example.org:8443/cas/login`
>> 
>>
>> why is this happening instead of redirecting me on the referenced cas
>> server I've declered under application-management.properties the following
>> properties
>>
>> cas.server.name=http://localhost:8443
>> cas.server.prefix=${cas.server.name}/cas
>> server.servlet.context-path=/cas-management
>> server.port=8443
>>
>> the file properties work properly because when i change the server port
>> also tomcat port change with it
>>
>>
>>
>> --
>> - 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+unsubscr...@apereo.org.
>> To view this discussion on the web visit
>> 

Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-09 Thread Jérémie Pilette
Hi Ray,
```
root@pc:/var/lib/tomcat10# ls -l
total 12
lrwxrwxrwx 1 root   root 13 10 oct.  18:33 conf -> /etc/tomcat10
```
So what I see in /etc/tomcat10 is the same as /var/lib/tomcat10/conf. OK
for that.
About logs in /var/log/tomcat10 :
catalina.out
localhost_access_log.2024-02-09.txt

About catalina.out, when I restart tomcat (systemctl restart tomcat10)
```
[2024-02-09 09:47:39] [info] 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
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:40] [info] ERROR StatusConsoleListener Error processing
element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casConsole" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casStackTraceFile" for logger config "root"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casConsole" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casFile" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] ERROR StatusConsoleListener Unable to locate
appender "casAudit" for logger config "org.apereo.inspektr"
[2024-02-09 09:47:41] [info] Le déploiement de l'archive de l'application
web [/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 955] ms
```

About  localhost_access_log.2024-02-09.txt
```
192.168.1.xx - - [09/Feb/2024:08:32:35 +0100] "GET
/DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
```

Thank you,
Jérémie

Le jeu. 8 févr. 2024 à 16:31, Ray Bon  a écrit :

> Jérémie,
>
> /etc/tomcat10 is the 'conf' directory. It may be a sym link to
> /var/lib/tomcat10/conf see
> https://packages.debian.org/bookworm/all/tomcat10/filelist
>
> tomcat will write its logs to /var/lib/tomcat10/logs (see
> /etc/tomcat10/logging.properties).
> What do the logs in /var/lib/tomcat10/logs say?
>
> Ray
>
> On Thu, 2024-02-08 at 06:21 -0800, Jérémie Pilette wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Hi Ray,
>
> I have installed Tomcat 10.1.6 with apt-get install tomcat10.
> Here the repository of tomcat10 (/etc/tomcat10) :
>
> drwxrwxr-x 3 root tomcat   4096  2 févr. 10:13 Catalina
> -rw-r- 1 root tomcat   7693 19 févr.  2023 catalina.properties
> -rw-r- 1 root tomcat   1411 19 févr.  2023 context.xml
> -rw-r- 1 root tomcat   1149 19 févr.  2023 jaspic-providers.xml
> -rw-r- 1 root tomcat   2799  9 oct.  23:21 logging.properties
> drwxr-xr-x 2 root tomcat   4096  2 févr. 10:12 policy.d
> -rw-r- 1 root tomcat   6755 10 oct.  18:33 server.xml
> -rw-r- 1 root tomcat   2780  2 févr. 12:33 tomcat-users.xml
> -rw-r- 1 root tomcat 172414 19 févr.  2023 web.xml
>
> I use the URL : http://my_host:8080/cas
>
> CAS webapp est deployed in .var/lib/tomcat10/webapps/cas
>
> I have the Error 404 of Tomcat without information.
>
> About logsn even ig log4j2.xml is configured in /etc/cas/config/ to
> display logs in /var/lib/cas/cas.log, I have nothing.
>
> Even if I use java 21 from Oracle instead of openjdk-21-jdk, it should
> works.
>
> Is that possible that the problems comes from the cas.properties files ? I
> think my file is good 
>
> Thank you,
>
> Jérémie
>
>
> Le mercredi 7 février 2024 à 03:51:39 UTC+1, Ray Bon a écrit :
>
> Jérémie,
>
> Are there any files in TOMCAT_HOME/logs ?
> (Could also be CATALINA_HOME or CATALINA_BASE)
>
> A pristine clone of cas-overlay-template should display the login page at
> http://localhost:8080/cas/login
>
> What URL are you using that you get 404?
>
> What does java -version say?
> How are you deploying to tomcat (tomcat built in deployer, copy to
> TOMCAT_HOME/webapps, etc)?
>
> Is there an application name and version number on the 404 page?
>
> Ray
>
> P.S. you can use openjdk instead of oracle
>
> On Tue, 2024-02-06 at 16:12 +0100, Jérémie Pilette wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Hi Ray,
>
> ok for cas7. So I downloaded Java but from Oracle website :
>
> wget