We need to overwrite a standard SAP .js file which exists in the war
file com.sap.ip.bi.web.portal.mimes.war file.The sapbi_comp.js is the
file that is to be overwriten in the component.We have been updating
the .js file successfully in NW 7.0 by making the changes in the js
file in par file and deploying on the server.
But in NWDS 7.3 we imported the war file in NWDS 7.3 and updated the js
file.Post that created an ear file and while deploying the ear file the
following excpetion is thrown:
"Cannot deploy two applications with identical application aliases
(context roots). Your application
[sap.com/com.sap.ip.bi.web.portal.mimes.ear] defines an application
alias (context root) [com.sap.ip.bi.web.portal.mimes] that is already
in use by application [sap.com/com.sap.ip.bi.web.portal.mimes]. There
are two possibilities in order to proceed with deployment: 1) Define
different application alias (context root) for your application
[sap.com/com.sap.ip.bi.web.portal.mimes.ear] (this is the preferred
option). 2) Undeploy the application "
We are not able to deploy the com.sap.ip.bi.web.portal.mimes.war file
as it says the alias already exists but in NW 7.0 we could overwrite
the par file for the same component thus updating the js file.
Please let us know how can we overwrite a standard SAP .js file.