on 03-12-2014 1:46 PM
I'm trying to run a Fiori App (PS_Activity_Conf) locally in eclipse with Tomcat:
1) I created an Application Project, connected it to Gateway to downloaded the BSP that contains the App, using Team -> share project and Team->Retrieve. After that I moved the files downloaded to WebContent.
2) Since Fiori wave 2 apps seems to not have index.html files, I created one (could not attach to limitations of this forum, but I can send it by e-mail). It's code seems like this:
<script src="resources/sap-ui-core.js" | ||||
id="sap-ui-bootstrap" | ||||
data-sap-ui-libs="sap.ui.commons, sap.m, sap.ui.layout" | ||||
data-sap-ui-theme="sap_bluecrystal" | ||||
data-sap-ui-resourceroots='{ | ||||
"i2d.ps.activity.confirm": "./" | ||||
}'> | ||||
</script> | ||||
<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required --> | ||||
<script> | ||||
var oComp1 = sap.ui.getCore().createComponent({ | ||||
name: "i2d.ps.activity.confirm", | ||||
id: "i2d.ps.activity.confirm" | ||||
}); |
var oCompCont1 = new sap.ui.core.ComponentContainer("CompCont1", { | ||
component: oComp1 | ||
}); | ||
oCompCont1.placeAt("content"); | ||
</script> |
3) I configured web.xml to avoid Cross-Domain request, as explained here: https://help.sap.com/saphelp_nw74/helpdata/en/2d/3f5fb63a2f4090942375df80abc39f/content.htm?fullscre...
My web.xml has:
<servlet> | ||
<servlet-name>SimpleProxyServlet</servlet-name> | ||
<servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>SimpleProxyServlet</servlet-name> | ||
<url-pattern>/sap/*</url-pattern> | ||
</servlet-mapping> | ||
<context-param> | ||
<param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name> | ||
<param-value>https://gatewaysrv.mycompany.com.br:443</param-value> | ||
</context-param> |
4) When I try to access the app URL, I still getting a localhost access:
5) When I access the URL of webservice directly in browser It works fine after I enter user and password.
What is wrong?
Hi Victor,
Please visit here.
Several how to guides are available.
Regards, Masa
SAP Customer Experience Group - CEG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vitor,
Have you managed to find a solution to your problem? I am interested to see how you solved it.
Thank you,
Lindsay
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 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.