title: Eclipse Tomcat Web Deployment Assembly
body: <p>Hi i'm trying deploy a Java EE Web Project via Eclipse on a tomcat install on localhost (Tomcat v 7 at localhost). The ultimate goal is to take use of JRebel to avoid the traditional handling of war files, and instead just press F5 in the browser the make changes in the application shine trough. However, the application has a "non-standard" folder structure, that i find hard to control using the "Web Deployment Assembly", since i can only find support for folders.</p>
  
  <p>Ok, let me try to evolve, in Eclipse, i right click the Web Project, choose "Properties", and then
  "Web Deployment Assembly", where it is possible to set Source folder and corresponding target folder, this is however crippling, to that extent, that i can only point to folder level.
  What i would like to be able todo is, set source down to file level, since the application i'm working on has a very specific folder/file structure, which deviates from the "normal" Hello World folder/file structure of a Web Project.</p>
  
  <p>Dunno if this makes it any clearer.  </p>
  
  <p>Ok after rubbing both of my braincells, and using the link that Anton tipped me, i got it to work out just fine.
  This how i did it, </p>
  
  <ol>
  <li>Create a rebel.xml file, right-click project | JRebel | Add JRebel Nature, where the settings for classpath and webfolder has to be set, <a href="http://manuals.zeroturnaround.com/jrebel/standalone/config.html" rel="nofollow">http://manuals.zeroturnaround.com/jrebel/standalone/config.html</a>. View section on configure WAR. </li>
  <li><p>Configure Server in Eclipse (Window | Show View | Servers), setting </p>
  
  <ul>
  <li>Server Location to "Use Tomcat installation (takes control of Tomcat installation)</li>
  <li>Server path, "/usr/local/tomcat", pointing to Tomcat install on my computer</li>
  <li>Deploy path, webapps directory</li>
  </ul></li>
  <li><p>Build a war-file in Eclipse using Ant in my case, and copying it over to the webapps directory.</p></li>
  <li><p>Start up the Tomcat server from Eclipse (Window | Show View | Servers), then right-click the server instance | Start. The application will now be deployed the traditional way, check out for messages in the Eclipse console, that JRebel actually is loading as it should.</p></li>
  <li><p>Now try to change in any of your jsp, css, js, model classes, service classes dao classes, or wathever structure your application has. These should now take place immediatly
  on F5 in your browser.</p></li>
  </ol>
  
  <p>Again thanks for your help Anton </p>