title: Tomcat / "Application cannot be deployed as it contains deployment-ids" error
body: <p>I am facing a problem connected with deploying two application on Tomcat 5 server.
  When deploying and running the server I receive an error message, which also prevents the second application to be properly run.</p>
  
  <pre><code>Unable to deploy collapsed ear in war /my-app: Exception: Application cannot be deployed as it contains deployment-ids which are in use: 
  </code></pre>
  
  <p>And after that there is a list of all duplicated ids. The second application is a smaller one, which is added to an already existing one managing all the entities. The project is build by Eclipse nad Maven. Is there a way to add dependency which should be included in the second application ( that what I intend to do right now ) so the second application will be able to know/use already exsiting packages? </p>
  
  <p>Thank you in  adnvace for any support,</p>
  
  <p>Regards</p>