Page tree
Skip to end of metadata
Go to start of metadata

Category:Deployment failed

Problem

Duplicate Application Alias.

Keywords

  • Failed to generate the model
  • Duplicate Aliases

Symptoms

During deployment the following error appears:

Failed to generate the model : DeploymentException.
Reason: An error occurred while deploying the deployment item 'sap.
com_bc~esm_bp_display_qaf_us'.; nested exception is:
	java.rmi.RemoteException:  class com.sap.engine.services.dc.gd.
DeliveryException: An error occurred during deployment of sdu id: sap.
com_bc~esm_bp_display_qaf_us
sdu file path: C:\DevelopmentServer\sap.
com\bc~esm_bp_display_qaf_us\_comp\gen\bc~esm_bp_display_qaf_us.ear

Solution

Cannot deploy applications with equal aliases but with different content.

The two possible solutions are:

  1. Define different application alias (context root) for your application (this is the preferred option).
  2. Un-deploy the old application

Redeploy again.

Sample logs

Failed to generate the model : DeploymentException.
Reason: An error occurred while deploying the deployment item 'sap.
com_bc~esm_bp_display_qaf_us'.; nested exception is:
	java.rmi.RemoteException:  class com.sap.engine.services.dc.gd.
DeliveryException: An error occurred during deployment of sdu id: sap.
com_bc~esm_bp_display_qaf_us
sdu file path: C:\DevelopmentServer\sap.
com\bc~esm_bp_display_qaf_us\_comp\gen\bc~esm_bp_display_qaf_us.ear
version status: NEW
deployment status: Admitted
description:
		1. Error:
Cannot deploy application sap.com/bc~esm_bp_display_qaf_us. Reason:
Cannot deploy two applications with identical application aliases
(context roots). Your application [sap.com/bc~esm_bp_display_qaf_us]
defines an application alias (context root)
[webdynpro/resources/local/bc~esm_bp_display_qaf_us] that is already in
use by application [local/bc~esm_bp_display_qaf_us]. There are two
possibilities in order to proceed with deployment: 1) Define different
application alias (context root) for your application [sap.
com/bc~esm_bp_display_qaf_us] (this is the preferred option). 2)
Undeploy the application [local/bc~esm_bp_display_qaf_us]...
Reason: Cannot deploy two applications with identical application
aliases (context roots). Your application [sap.
com/bc~esm_bp_display_qaf_us] defines an application alias (context
root) [webdynpro/resources/local/bc~esm_bp_display_qaf_us] that is
already in use by application [local/bc~esm_bp_display_qaf_us]. There
are two possibilities in order to proceed with deployment: 1) Define
different application alias (context root) for your application [sap.
com/bc~esm_bp_display_qaf_us] (this is the preferred option). 2)
Undeploy the application [local/bc~esm_bp_display_qaf_us].; nested
exception is:
	java.rmi.RemoteException:  class com.sap.engine.services.deploy.
server.utils.DSRemoteException: Cannot deploy application sap.
com/bc~esm_bp_display_qaf_us. Reason: Cannot deploy two applications
with identical application aliases (context roots). Your application
[sap.com/bc~esm_bp_display_qaf_us] defines an application alias (context

 root) [webdynpro-resources-local-bc~esm bp display qaf us] that is

already in use by application [local/bc~esm_bp_display_qaf_us]. There
are two possibilities in order to proceed with deployment: 1) Define
different application alias (context root) for your application [sap.
com/bc~esm_bp_display_qaf_us] (this is the preferred option). 2)
Undeploy the application [local/bc~esm_bp_display_qaf_us]...
Reason: Cannot deploy two applications with identical application
aliases (context roots). Your application [sap.
com/bc~esm_bp_display_qaf_us] defines an application alias (context
root) [webdynpro/resources/local/bc~esm_bp_display_qaf_us] that is
already in use by application [local/bc~esm_bp_display_qaf_us]. There
are two possibilities in order to proceed with deployment: 1) Define
different application alias (context root) for your application [sap.
com/bc~esm_bp_display_qaf_us] (this is the preferred option). 2)
Undeploy the application [local/bc~esm_bp_display_qaf_us].; nested
exception is:
	java.rmi.RemoteExcepentException: Cannot deploy two applications

 with identical application aliases (context roots). Your application

[sap.com/bc~esm_bp_display_qaf_us] defines an application alias (context

 root) [webdynpro-resources-local-bc~esm bp display qaf us] that is

already in use by application [local/bc~esm_bp_display_qaf_us]. There
are two possibilities in order to proceed with deployment: 1) Define
different application alias (context root) for your application [sap.
com/bc~esm_bp_display_qaf_us] (this is the preferred option). 2)
Undeploy the application [local/bc~esm_bp_display_qaf_us].

Related SAP Notes

N/A

  • No labels

2 Comments

  1. Unknown User (ggajoij)

    It would be more helpful to explain how does one implement the preferred solution: Define different application alias (context root) for your application.

    Regards

    IL

  2. Unknown User (ppwzfwh)

    I agree with Isaac, an explanation of how to implement either solution would be beneficial. The error itself recommends these two solutions...

    This link got me on the right track: http://scn.sap.com/thread/946953

    Basically you can use the Telnet process, which I got to work, or the "Deployment" perspective in NetWeaver Developer Studio to undeploy an existing application.

    -- Kevin