title: Can't publish J2EE project to tomcat in eclipse
body: <p>I have a Java project using Groovy and Java mixed. Now I want to publish it to my tomcat, but it says </p>
  
  <pre><code>Could not publish to the server. java.lang.IndexOutOfBoundsException
  </code></pre>
  
  <p>Platform : OS X / Eclipse Kepler Service Release 1 / Java 1.6 / Tomcat 7.0.39</p>
  
  <p>How can I deal with this issue ? I can deploy a new create Dynamic Web Project, but not my exist project.</p>
  
  <p>My server configuration :</p>
  
  <p><img src="https://i.stack.imgur.com/wu9gQ.jpg" alt="enter image description here"></p>