2014-07-21 2 views
4

Je suis nouveau sur Maven et essaye de configurer un projet web en utilisant Maven. J'ai configuré le projet dans Eclipse et j'utilise Tomcat 7.0.53. Dans la configuration d'exécution pour Maven build et j'ai défini tomcat:run dans Goals.
Quand je lance cette configuration, après journal est vu dans la console Eclipse:Maven build: le serveur Tomcat ne démarre pas

[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Chat sample using the Spring MVC Servlet-based async support 1.0.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ spring-mvc-chat >>> 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ spring-mvc-chat --- 
[debug] execute contextualize 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 1 resource 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ spring-mvc-chat --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ spring-mvc-chat <<< 
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ spring-mvc-chat --- 
[INFO] Running war on http://localhost:8080/spring-mvc-chat 
[INFO] Using existing Tomcat server configuration at D:\Workspace\spring-mvc-chat-master\target\tomcat 
Jul 21, 2014 11:26:44 AM org.apache.catalina.startup.Embedded start 
INFO: Starting tomcat server 
Jul 21, 2014 11:26:45 AM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29 
Jul 21, 2014 11:26:45 AM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Jul 21, 2014 11:26:45 AM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8080 

Rien ne se passe après. Il n'y a aucune information sur le démarrage du serveur et par conséquent le projet ne peut pas fonctionner du tout. Y at-il une étape qui manque ici? Ou c'est le comportement correct?

+1

"J'utilise Tomcat 7.0.53" -> INFO: Démarrage du moteur Servlet: Apache Tomcat/6.0.29. Il y a quelque chose d'horriblement mauvais, si vous ne démarrez déjà pas la version Tomcat, vous pensez que vous démarrez. – Gimby

+0

Après être passé à 'mvn tomcat7: run', la console s'est bloquée à: ' 21 juillet 2014 13:15:26 org.apache.coyote.AbstractProtocol start INFO: Démarrage de ProtocolHandler ["http-bio-8080"] ' –

+0

avez-vous vérifié http: // localhost: 8080/spring-mvc-chat dans votre navigateur? parce que cette sortie semble ok pour moi. – arghtype

Répondre

6

Pour Tomcat 7 Utilisation mvn tomcat7:run Réf: Maven Tomcat 7

+0

J'ai eu exactement le même problème où maven ramassait apache 6.0.29 tomcat et pas 7. En raison de ce webservlets ne chargeaient pas. Merci... – Amit

Questions connexes