Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: OData call 404 when running from HCP

$
0
0

Hi Gregory,

 

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d012de0f-9c52-3110-aebb-8a9d9aaae67e?QuickLink=index&…

 

My HCP runtime creation issue was solved so now I am back to create destination and resolve my reverse proxy error in eclipse before deploying to HCP. As per the above document , I did the steps of modifying the web.xml with additional code for reverse proxy as seen in screenshot below

 

rev1.JPG

 

I have created the destination also with the name "cloudbackend" as given in the document.

rev2.JPG

 

In my Odata model , as given in the document i modified the url for webservice by using the destination name.

rev3.JPG

 

But when I am executing this app from eclipse using local HCP runtime (not HANA cloud platform yet) , its giving 404 Not Found for this URL while fetching the $metadata itself which means the destination does'nt seem to work.

 

Also , in the document , its written to add 2 java files ProxyServlet.java and SecurityHandler.java in  a package inside the src folder of JAVA Resources. I did that but both the java files are been shown in red color in eclipse indicating some error in them on all lines (Syntax error on Tokens)as can be seen in the below screenshot.

 

rev4.JPG

 

Once this app is able to successfully run ODATA call using destination from localhost HCP in eclipse , I guess then I will deploy to actual HANA Cloud Platform and expect it to work.

 

Regards

Amber


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>