title: Eclipse + JBoss Tools won't run webapp to configured JBoss AS
body: <p>I am using <strong>Eclipse 3.7.2</strong> with <strong>JBoss Tools 3.3</strong> under Ubuntu 12 and have configured a locally installed copy of <strong>JBoss AS 7.1.1</strong> in Eclipse under "<em>Preferences::Server::Runtime</em>" Environments.</p>
  
  <p>However, when trying to run a Java EE application by double-clicking on the project or an .xhtml page I only see "<em>Run As / Run</em>" on Server as an option and I get an HTTP 404 from <strong>Apache Tomcat/7.0.26</strong> at <em>localhost:8080</em>. That is, it seems like Eclipse is trying to deploy to a Tomcat server as opposed to the JBoss AS I have configured in "<em>Preferences::Server::Runtime</em>" and I don't get an option like "Run on JBoss" or anything. When I export my application as a war and manually deploy to JBoss AS the app runs fine.</p>