on 11-15-2013 10:13 AM
I wanted to run Leave Approval App on a local server (via XAMPP). I have downloaded the code and have imported it to my Eclipse. When I tried accessing the application on the browser. The UI part seems to be fine but I'm having problem accessing the OData which is on a different server (not local). I was expecting just CORS error but the OData that is being retrieved is the local OData which is non-existed.
I have already modified the path in web.xml
<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>http://xx.xx.xxx.xx:8000/sap/</param-value> <!---location of odata-->
</context-param>
I wonder if I have to do reverse proxy on the webserver. Configuring the config files of XAMPP.
Any help is greatly appreciated. Thank you in advance.
I would recommend to configure your local xampp as a reverse proxy. As you can see in your first 404 error, he puts the path of the request behinds the ip of your localhost...
Here an example of configuring your xampp:
Kind regards,
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.