Search code examples
deploymentwebsphereear

Websphere ear deploment is failed


I am trying to deploy ear file and there is error comes saying

"A composition unit with name ace-ear already exists. Select a different application name"

which is not there . what else can be the problem ?


Solution

  • Though not recommended, you can manually remove the references of the ear from the server configuration files.

    To check if the ear exists inside the profile, run the below command from Dmgr/config folder. Delete the ear files manually, if present.

    find . -name '*ace-ear*'
    

    To check if there are ear references in the configuration xmls, run the below command from Dmgr/config folder, and then remove those entries from the xml files manually, if present.

    find . -name '*.xml' | xargs grep -i ace-ear
    

    Post this, Restart the Deployment manager, sync nodes and restart the JVMs and try deploying the application.

    NOTE : Be very careful updating the server configuration files manually, as any mistakes can corrupt the server configurations. Taking profile backups before applying any changes to server configuration files is recommended.