on 05-03-2012 1:39 AM
Hi Experts,
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.
Regards
Radhika
Hello Radhika,
It might not be the most recommended thing to do, but,
Since the file you wish to change is a Java Script, you can change it locally on each and every server node by opening the deployed file on the file system and replacing the JS file with a file with the same name.
That way you will avoid the deployment exception.
Best Regards,
Nadav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.