Hello.
Je suis sous Fedora.
Passant de JavaSE à JavaEE pour créer des sites web dynamiques en java, j'ai besoin de Tomcat.
J'ai fait "sudo yum install tomcat" puis "sudo systemctl start tomcat".
j'ai ajouté JAVA_HOME comme variable d’environnement.
"sudo systemctl status tomcat" me donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 ● tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2020-11-04 14:06:35 CET; 59min ago Main PID: 8017 (java) Tasks: 40 (limit: 18976) Memory: 89.0M CPU: 9.684s CGroup: /system.slice/tomcat.service └─8017 /usr/lib/jvm/jre/bin/java -agentpath:/usr/lib/abrt-java-connector/libabrt-java-connector.so=abrt=on, -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath /usr/share/tomcat/bi> nov. 04 14:06:35 pc-54.home server[8017]: 04-Nov-2020 14:06:35.860 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Chargement de la librairie Apache Tomcat Native [1.2.23] en utilisant APR version [1.7.0] nov. 04 14:06:35 pc-54.home server[8017]: 04-Nov-2020 14:06:35.861 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Fonctionnalités d'APR : IPv6 [true], sendfile [true], accept filters [false], random [tru> nov. 04 14:06:35 pc-54.home server[8017]: 04-Nov-2020 14:06:35.861 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Configuration de APR/OpenSSL : useAprConnector [false], useOpenSSL [true] nov. 04 14:06:35 pc-54.home server[8017]: 04-Nov-2020 14:06:35.863 INFOS [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL a été initialisé avec succès [OpenSSL 1.1.1g FIPS 21 Apr 2020] nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.173 INFOS [main] org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de protocole ["http-nio-8080"] nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.199 INFOS [main] org.apache.catalina.startup.Catalina.load L'initialisation du serveur a pris [531] millisecondes nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.242 INFOS [main] org.apache.catalina.core.StandardService.startInternal Démarrage du service [Catalina] nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.242 INFOS [main] org.apache.catalina.core.StandardEngine.startInternal Démarrage du moteur de Servlets : [Apache Tomcat/9.0.38] nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.250 INFOS [main] org.apache.coyote.AbstractProtocol.start Démarrage du gestionnaire de protocole ["http-nio-8080"] nov. 04 14:06:36 pc-54.home server[8017]: 04-Nov-2020 14:06:36.260 INFOS [main] org.apache.catalina.startup.Catalina.start Le démarrage du serveur a pris [61] millisecondes
Or la page d'accueil de Tomcat ne s'affiche pas avec un "localhost:8080/" ou un "Hello word" de base dans "/test_4/WebContent/NewFile.jsp" mais j'obtiens ceci.
Le server.xml contient bien le port 8080.
le log de tomcat donne ceci :
J'ai bien sûr testé un "sudo setenforce 0" et un stop du firewalld mais sans changement.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 [root@pc-54 tomcat]# tail -f localhost_access_log.2020-11-04.txt 0:0:0:0:0:0:0:1 - - [04/Nov/2020:11:30:41 +0100] "GET /test_4/WebContent/NewFile.jsp HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:11:30:41 +0100] "GET /favicon.ico HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:11:45:58 +0100] "GET /test_4/WebContent/NewFile.jsp HTTP/1.1" 404 604 127.0.0.1 - - [04/Nov/2020:11:50:11 +0100] "GET /test_4/WebContent/NewFile.jsp HTTP/1.1" 404 604 127.0.0.1 - - [04/Nov/2020:11:50:11 +0100] "GET /favicon.ico HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:11:55:40 +0100] "GET / HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:14:07:38 +0100] "GET / HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:14:07:38 +0100] "GET /favicon.ico HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:14:08:18 +0100] "GET /test_4/WebContent/Newfile.jsp HTTP/1.1" 404 604 0:0:0:0:0:0:0:1 - - [04/Nov/2020:14:08:47 +0100] "GET /test_4/WebContent/NewFile.jsp HTTP/1.1" 404 604
En revanche, aucun pb avec localhost/phpmyadmin par exemple ou des pages php dans des répertoires sous /var/www/html/ ...
Si quelqu'un a une idée pour me débloquer, elle sera vraiment la bienvenue.
Merci d'avance.
Yves.
Partager