Running service application response HTTP Status 404 - sap-cloud-platform

I deploy https://blogs.sap.com/2017/09/15/library-manager-for-sap-web-ide/ on the sap hana cloud platform and I can see, that the application is running:
When I click on the application URL it says HTTP Status 404.
What am I doing wrong?

I found the answer in an SAP UI5 course page and verified it with my application. It mentions that the application URL shown in the cockpit is only the root URL. You need to append an relative path to it. To see your relative path, you can run the application from Web IDE, and then copy the path from the slash after the host name. For example, if the Web IDE test URL is https://webidetesting-trial.dispatcher.hanatrial.ondemand.com/webapp/test/flpSandbox.html#ManageProducts-display, copy the "webapp/test/flpSandbox.html#ManageProducts-display" part and paste it after the application URL.

Related

Tomcat 404 Error when deploying a WAR file of a REST web app

As part of a course in my CS undergrad degree I need to implement a RESTful web app using Struts2 framework. To do so I'm trying to first see an example of a working example of such a project.
I have downloaded such an example from the official Struts2 website in the following link under the title example applications - https://struts.apache.org/download.cgi.
after extracting the zip file, I saw the folder contained the relevant WAR file named struts2-rest-showcase.
Then, after installing Tomcat 10, I used Tomcat's Web Application Manager to deploy this WAR.
After deployment whenever I try starting the application I get HTTP Status 404 - Not Found error with the following error details:
Type - Status report
Message - The requested resource [/struts2-rest-showcase/] is not available
Description- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
A similar error message occurred when I tried running another example, in the following link, using Tomcat through Eclipse IDE -
https://github.com/amolghotankar/struts2-rest-sample
I feel completely lost since the above examples are supposed to be working examples.

How to open page directly in Ionic 4 from url

I have a project in Ionic 4, when I do ionic serve it runs at localhost:8100/
Now when it loads home page, the URL is localhost:8100/home, if I open contact page the URL becomes localhost:8100/contact.
When I try to copy the above URL and hit, then it says -
Sorry, this page doesn't exist. Please check the URL or go back a page.
What do I need to do to get this working?
Based on your comments this is happening because your server does not support fallback. So when you enter a url manually, the server is trying to find that page, but you only have index.html in your app because of Client side routing.
If the app uses the Angular router, you must configure the server to
return the application's host page (index.html) when asked for a file
that it does not have.
The configuration is specific to your server or cloud platform. You can check Angular deployment for more info.
This regularly should not happen and you can't do anything for this. Try to upgrade your ionic to the latest with nodejs since the error my be from currupted project creation. Then after update create a new project and it should go good.

How to test SAPUI5 apps locally in apache tomacat installed in eclipse?

I am working on SAPUI5 app which was created long back and running successfully. Now I need to do some enhancements and for that I downloaded the app and uploaded in eclipse.
Now when I am running this app locally - It is not working as the XMLHTTP Request says 404 (Not Found) when accessing the backend OData service.
URI is : /sap/opu/odata/sap/Z****SRV";
I understand that I need to add http://<host>:<port> before URI.
But I cannot change it in all the places. I found out that we can write <param-value> in web.xml file but I did and still it is not working
Can someone guide me how?

http status 302 error in tomcat eclipse

I am developing a Telco application (Dyanamic Web application project to send and receive sms) using Eclipse & tomcate version 7
When I try to run it on
http://localhost:8080/SMS1
It gives an error message HTTP-ERROR-CODE:302
What should I do to resolve this error
This is the link to Application and video tutorial what I am following
https://drive.google.com/file/d/0B3VmCeqDC7SDcFZaWVZhRUNmaTQ/edit?usp=sharing
HTTP code 302 is a standard "redirect" message--that is, it tells your web browser that the page was moved and where the new page can be found. I'm guessing whatever you're using as a web browser (Eclipse?) just doesn't handle that type of redirect. Try using a standard web browser like Chrome or Mozilla to see if that helps...
Also a guess, but the redirect may be trying to move you to HTTPS instead of HTTP, and your certificates may not be set up properly, or the port isn't enabled, or there may be some other problem with your HTTPS configuration. If the app is supposed to work over HTTPS, try going directly to the HTTPS version of the link to see if that's the real issue.
A third guess is the app may be trying to redirect you to a login page if you're not logged in, and maybe it can't find it. I'd need to know a lot more about the built product and I really don't want to mess with some guy's shared Eclipse project. Tell them to use a build tool!

IBM Worklight 6.0 - Desktop Browser environment does not work in Facebook

I have created a simple application using Worklight v6.0 and dojo (1.9 version) and I want to put this app on facebook. I've followed these steps:
Created a Worklight project and application
Configured the dojo library
Added the Desktop Browser environment
Configured my app on facebook based on this Information Center article
I've put this URL as the Canvas URL parameter:
http://host:port/apps/services/www/application_name/desktopbrowser/ but the app doesn't load and Facebook is returning The server refused the connection.
the desktopbrowser environment is running on my localhost browser and an external machine can access to my app.
Is there anything that I must do in Worklight v6.0 or in Facebook to make it work?
The Canvas URL is missing the Worklight Server's context root, for example:
http://myHost:10080/fbtest/apps/services/www/fbapp/desktopbrowser/
Where fbtest is your context root, which is your project name by default.
In my tests the app was successfully loaded and displayed:
Make sure to also setup the publicWorkLightHostname in server\conf\worklight.properties.
See if that helps.
See full-size image here: http://i.stack.imgur.com/D2xEI.png