If the SAPUI5 bootstrap tag contains src="resources/sap-ui-core.js"
, the
SAPUI5 runtime libraries from the Eclipse plugin are used.
If you want to test your SAPUI5 application in Eclipse against a different SAPUI5 Library
location, for example on the ABAP server when running in the SAP NetWeaver UI AddOn
scenario, you can configure the ResourceServlet. For that, open the web.xml file located
in the <WebContent folder name>/WEB-INF folder and configure the parameter
com.sap.ui5.resource.REMOTE_LOCATION
and
com.sap.ui5.resource.PREFER_REMOTE_LOCATION
of the ResourceServlet
where the placeholders {protocol}, {host name}, {port number}, {path to UI5 library} are
to be exchanged by the real protocol, host name, port number and path to the SAPUI5
library, see Resource
Handling, section Tunneling a Remote Location.
<servlet> <display-name>ResourceServlet</display-name> <servlet-name>ResourceServlet</servlet-name> <servlet-class>com.sap.ui5.resource.ResourceServlet</servlet-class> </servlet> ... <!-- force to use the remote location --> <context-param> <param-name>com.sap.ui5.resource.PREFER_REMOTE_LOCATION</param-name> <param-value>true</param-value> </context-param> <!-- add the remote location for the UI5 libraries --> <context-param> <param-name>com.sap.ui5.resource.REMOTE_LOCATION</param-name> <param-value>{protocol}://{host name}:{port number}/{path to UI5 library}</param-value> </context-param>