Bonjour,

J'ai installé Eclipse et Tomcat 7 sur mon PC personnel qui tourne sous Windows 7. Tout se lance bien, mais quand je veux lancer tomcat dans Eclipse j'ai le message d'erreur suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
Or, si je regarde les logs de tomcat dans la console, j'ai :

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
 
mars 16, 2012 1:41:24 AM org.apache.catalina.core.AprLifecycleListener init
Infos: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_03\bin;.
mars 16, 2012 1:41:24 AM org.apache.coyote.AbstractProtocol init
Infos: Initializing ProtocolHandler ["http-bio-8080"]
mars 16, 2012 1:41:24 AM org.apache.coyote.AbstractProtocol init
Infos: Initializing ProtocolHandler ["ajp-bio-8009"]
mars 16, 2012 1:41:24 AM org.apache.catalina.startup.Catalina load
Infos: Initialization processed in 454 ms
mars 16, 2012 1:41:24 AM org.apache.catalina.core.StandardService startInternal
Infos: Démarrage du service Catalina
mars 16, 2012 1:41:24 AM org.apache.catalina.core.StandardEngine startInternal
Infos: Starting Servlet Engine: Apache Tomcat/7.0.26
mars 16, 2012 1:41:25 AM org.apache.coyote.AbstractProtocol start
Infos: Starting ProtocolHandler ["http-bio-8080"]
mars 16, 2012 1:41:25 AM org.apache.coyote.AbstractProtocol start
Infos: Starting ProtocolHandler ["ajp-bio-8009"]
mars 16, 2012 1:41:25 AM org.apache.catalina.startup.Catalina start
Infos: Server startup in 227 ms
On voit bien que Tomcat a bien démarré en 227 ms, mais Eclipse continue d'essayer de le démarrer et part en erreur au bout de 45 secondes. De plus, si avant d'avoir le message d'erreur je vais dans un navigateur pour accéder à localhost:8080, j'ai une erreur 404 renvoyé par Tomcat, ce qui montre bien que le serveur est démarré.

Je n'arrive pas à comprendre pourquoi Eclipse ne voit pas que Tomcat a bien démarré.

Merci par avance de votre aide.