You have autorun enabled on your Tomcat installation. This link provides a detailed overview of autodeploy, but in a nutshell Tomcat scans specific directories for updated web.xml and war files. If he finds a war file, he automatically deploys it.
The best way to deploy (especially if you ever need to deploy to a remote computer) is to use the Ant tasks that come with Tomcat. This page shows how to customize the build file so that you can deploy and remove from Ant. The page is out of date, but the information is still good. Here is a snippet of the build.xml file that I use to deploy to Tomcat:
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"> <classpath> <path location="${build-jars}/catalina-ant.jar" /> </classpath> </taskdef> <target name="buildAndDeploy" depends="buildWar"> <deploy url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/${target.name}" update="true" war="file:${basedir}/deploy/${target.name}.war" /> </target>
You can find the ant.jar directory directory in the Tomcat lib directory.
Paul
source share