0

We have developed a SAP UI5 web app using eclipse. In this app some cross domain ajax calls are there. That's why we are trying to use Jetty proxy.

While testing the app inside Eclipse(which actually uses inbuilt Jetty server) its running fine. But Whenever we are deploying the war file to Standalone Jetty server its not able to forward messages to target.

Can you please help how to configure Jetty proxy? Below is the screenshot of web.xml inside my webapp.

web.xml screenshot for Proxy

Abhishek
  • 2,095
  • 2
  • 21
  • 25
  • Do you get an error message in your logs? – jpenninkhof Jun 22 '16 at 11:12
  • Its showing Timed out error. HTTP 500. – Abhishek Jun 22 '16 at 11:20
  • Isn't there anything useful in the server log? The time-out may indicate that the Jetty server is unable to reach the end-point. – jpenninkhof Jun 22 '16 at 11:27
  • @jpenninkhof its saying it couldn't connect end point. – Abhishek Jun 22 '16 at 12:35
  • In that case, something might be firewalled, perhaps the server can't resolved the URL or may need a proxy to communicate with the end-point. It's likely something in the network configuration. – jpenninkhof Jun 22 '16 at 12:47
  • @jpenninkhof, everything is working fine when I'm testing within Eclipse (i.e. Web App Preview). All ajax calls are getting executed correctly. But when Im running the app in standalone Jetty then problem is occurring. – Abhishek Jun 22 '16 at 13:28
  • From the same machine? Do you need to use a proxy to reach external sites? – jpenninkhof Jun 22 '16 at 13:37
  • @jpenninkhof Yes from same machine. And trying to use proxy to external site. But not working. – Abhishek Jun 22 '16 at 13:40
  • It looks like the proxy might be the culprit. Try using an internal endpoint to see if that works. – jpenninkhof Jun 22 '16 at 13:47
  • I noticed same issues after some upgrades. Not sure if Eclipse related upgrades, Windows related upgrades or SAP Eclipse Plugin related upgrades. I am using the WebAppPreview since 2 years (different Eclipse versions) but since some time I got more and more problems with it. Eclipse Mars was not working with the preview. Luna was working till one month ago (or so). But now I have timeouts as well. – user3783327 Aug 01 '16 at 07:08

0 Answers0