1

I am simulating multiple TomEE (1.7.1) instances using virtual-hosts. I have multiple virtual-hosts that are deploying the same war with the same EJBs.

This leads to:

org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use

Any suggestions on how to solve this?

Aviram
  • 553
  • 1
  • 8
  • 21

1 Answers1

1

did you try openejb.deploymentId.format = {appId}/{ejbJarId}/{ejbName} in conf/system.properties?

To make it even more portable coming 1.7.2 (release process in progress) and coming 2.x will support:

openejb.deploymentId.format = {host}/{appId}/{ejbJarId}/{ejbName}

and even

openejb.deploymentId.format = {hash}/{host}/{appId}/{ejbJarId}/{ejbName}

Romain Manni-Bucau
  • 3,354
  • 1
  • 16
  • 13
  • since it's the exact same war, this id is not unique. Unless there's some way to add the host to the template, I'll have to wait to the next release... :) – Aviram Jan 25 '15 at 20:59