Hello I am developing an arquillian extension that basically deploys two
WAR files, the first one automatically and the second one is created by the
user using @Deployment.

Basically the extensions listens for AfterDeploy annotation and it uses the
current org.jboss.arquillian.container.spi.Container instance to call the
deploy method passing as argument one war file resolved by Shrinkwrap Maven
resolver.

The problem is that when I run the extension with Embedded TomEE next
exception is thrown: Application cannot be deployed as it contains
deployment-ids which are in use and points to the WAR deployed by
extension. If instead of listening AfterDeploy event I listen the
BeforeDeploy, the WAR that cannot be deployed is the one generated by user
with @Deployment.

But if I run with Remote (Managed) TomEE then it works perfectly, so it
seems like we couldn't deploy two war files in embed mode, is it correct?

Thank you so much.

-- 
+----------------------------------------------------------+
  Alex Soto Bueno
  www.lordofthejars.com
+----------------------------------------------------------+

Reply via email to