How do I run a maven web application in Tomcat from Eclipse?
Author: Deron Eriksson
Description: This tutorial describes how to run a maven web application project in Tomcat from Eclipse.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1) || Tomcat 6.0.14

Page: < 1 2

(Continued from page 1)

Now, I'll create an EclipseSW Debug Configuration to start up my project in TomcatSW. I named the Debug Configuration "mywebapp tomcat". I specified the project to be "mywebapp". The Tomcat main class from the bootstrap.jar file is "org.apache.catalina.startup.Bootstrap".

'mywebapp tomcat' Debug Configuration

On the Arguments tab, I specified the working directory to be my Tomcat home directory, which for me is C:\dev\apache-tomcat-6.0.14.

Arguments Tab

I clicked the Debug button to start up my project in Tomcat via Eclipse.

I went to a web browser and attempted to hit my "mywebapp" web application via http://localhost:8080/mywebapp. It worked!

Hitting 'mywebapp' in web browser
Page: < 1 2