Bonjour,

Je travaille en binôme sur un projet web en JEE mais je rencontre un problème lors du lancement du projet sur eclipse avec un serveur Tomcat 8. Lorsque j'essaie de lancer une page en faisant clic droit dessus puis "Run on Server", eclipse indique le message d'erreur http 404. Alors que mon binôme n'a pas de problème...

J'ai installé la version d'eclipse Luna avec un serveur Tomcat 8.0.21 (Binary Distributions - Embedded tar.gz) et le tout sous Windows 7.

J'ai essayé de comprendre le message d'erreur de la console, mais en vain. Le voici:

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
 
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:******* Apache Tomcat/8.0.21
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:********* Mar 23 2015 14:11:21 UTC
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:******** 8.0.21.0
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:************** Windows 7
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:*********** 6.1
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:********* x86
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:************ C:\Program Files\Java\jre7
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:********** 1.7.0_25-b17
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:*********** Oracle Corporation
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:******** D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:******** D:\Téléchargements\AAAlex\apache-tomcat-8.0.21
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=D:\Téléchargements\AAAlex\apache-tomcat-8.0.21
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=D:\Téléchargements\AAAlex\apache-tomcat-8.0.21\endorsed
mai 06, 2015 2:53:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
mai 06, 2015 2:53:30 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: 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/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\QuickTime\QTSystem\;D:\Téléchargements\AAAlex\eclipse;;.
mai 06, 2015 2:53:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
mai 06, 2015 2:53:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
mai 06, 2015 2:53:32 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
mai 06, 2015 2:53:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
mai 06, 2015 2:53:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5073 ms
mai 06, 2015 2:53:32 PM org.apache.catalina.core.StandardService startInternal
INFO: Démarrage du service Catalina
mai 06, 2015 2:53:32 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.21
mai 06, 2015 2:53:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Déploiement du descripteur de configuration D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\ProjetWeb.xml
mai 06, 2015 2:53:34 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ProjetWeb' did not find a matching property.
mai 06, 2015 2:53:34 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ProjetWeb]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1720)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javax/mail/MessagingException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:256)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:132)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:334)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5065)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
... 25 more
*
mai 06, 2015 2:53:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Erreur lors du déploiement du descripteur de configuration D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\ProjetWeb.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ProjetWeb]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1720)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
*
mai 06, 2015 2:53:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor D:\Téléchargements\AAAlex\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\ProjetWeb.xml has finished in 438 ms
mai 06, 2015 2:53:34 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
mai 06, 2015 2:53:34 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
mai 06, 2015 2:53:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2395 ms
Merci d'avance !