I have created an app through the SAP Web IDE Full-Stack and attempted to deploy it to the SAP Cloud Platform. This appears to work fine, however, when I then go to use the deployed link it just displays "HTTP Status 404 - Not Found".
I tried looking for other solutions but had no luck. Here is my neo-app.json file:
And this is my apps structure:
So it appears that it is pointing to the index correctly, the only thing I am noticing is that in the generated dist it does not contain an index file. I have tried manually adding it but it is being removed upon project rebuilt.
Could this be the problem? If so how can I fix this?
Any help would be greatly appreciated
The folder structure of your SAP UI5 app is very important during deployment. Ideally you should have your webapp folder and your dist folder as the only folders in the root directory of the app. (It's okay if you do not have a dist folder).
Your neo-app.json file should also have a line like "welcomeFile":"webapp/index.html", pointing to your index.html or the root file of your application.
This should mostly solve the HTTP Status 404 issues.
Managed to fix the issue, not entirely sure why, but upon removing the ExternalLib folder i can now successfully deploy and run the app on the SAP cloud platform
Related
I am trying to develop my first web-application based on java-EE. This application should be deployed on WildFly application server. For That purpose, I made my inspiration from https://bitbucket.org/lassitercg/example/src.
I made some modifications on my Code.
I am developing this application using IntelliJ-Community. The Application was successfully deployed.
whenever I try to access the application using the following URL localhost:8080/startweb, I get the http status code 404. The code can be found unter this link https://github.com/amitakCsNew/startweb
Since I using Intellij Community edition, I am forced to deploy the application then set the breakpoint in the Controller of the application. The application seems to be succesfully deployed, but I am not jumping to the first breakpoint.
any Idea how I can solve this problem ?
Your webapp layout is wrong. Please refer to the standard Maven directories layout.
You need to move webapp directory to src/main. Then update pom.xml file reference to web.xml, then move META-INF from resources into webapp then fix your syntax errors in index.xhtml (the same h namespace is associated with 2 different URLs), then fix/implement your database, then add faces servlet in web.xml, add faces-config.xml, then your web app should be available at http://localhost:8080/startweb/.
Once you resolve all the problems and the controller code finally executes, you will be able to debug it from the IDE using Remote debug configuration.
If you are new to all of this, I'd suggest starting with something more simple, like a single JSP page and a single Java servlet.
Post the new questions if you have issues describing what you did to solve the problem and what exactly didn't work. The current question is too broad and your sample project has too many issues to cover in the single answer.
I am developing an SAPUI5 fiori application in the Web IDE (cloud platform).
In the development environment everything works fine. But when I deploy the app on the ABAP Respository and start it in the launchpad, it does not work, because the style.css file is not found.
I took a closer look to the url of the style.css and I realized, that it has a different structure than another app that I have deployed months ago.
This file is not found:
https://mycompany/sap/bc/ui5_ui5/ui2/ushell/resources/~20181114160800~/M_C/FurnitureContract/css/style.css
In this Link above, the namespace of my application is included in the URL: M_C/FurnitureContract
This file is found in another app that works:
https://mycompany/sap/bc/ui5_ui5/sap/moeb_change/~68ABCE58F96887C38EE8B5139A5D5A5E~5/css/style.css
In the link above, the namespace of the application is not included in the URL.
My structure looks like this:
So far I have analysed the other files of my application and they have the following URL structure:
https://mycompany/sap/bc/ui5_ui5/sap/z_moeb/~4E052E59AEEA69D8B40B84C6C43A9CC1~C/component.js
This is the correct URL, but now why is the URL of my css-file different? When I replace the /component.js with /css/style.css and call this URL in the browser, then I get the css file.
Can anyone tell me what I am doing wrong here?
Thanks
This may be a vague question but I have been unable to find any help/tutorials specific to my situation and am stuck.
I have built a website using Eclipse (Dynamic Web Project.) I then deployed this application using Tomcat and can see it by going to localhost, however, I am struggling on how to actually deploy it to the cloud.
I am trying to use Google App Engine but am open to other (free) alternatives for deploying my web application.
With Google App Engine, I registered for an account, made a new project, connected it to my github repository and confirmed the correct code is listed.
However, when navigating to project_id.appspot.com (mine is http://mapp-development.appspot.com) I get a 404 error.
I have attempted various deployments and even made an entirely new Google Web Application Project in Eclipse for testing which worked but weirdly deployed to http://1-dot-mapp-develop.appspot.com/ and is the test files which I do not know how to correctly modify.
Is there any way to upload/deploy my existing web application to Google App Engine (as a .war or otherwise)?
I am new to web development and apologize for any unclear specifications. Any help would be greatly appreciated!
Edit: I have also tried (in Eclipse) right clicking the project and choosing "Deploy to App Engine" under Google however it states "mapp-website is not an App Engine project".
Edit2: I had a stupid mistake, I confused my Project ID (mapp-development) and app id (mapp-develop). I am able to successfully make a new Google web project and deploy it to mapp-develop.appspot.com
Sorry for the trouble!
Here are three ways to deploy:
Make an App Engine project in Eclipse
Deploy via Git
Deploy via GitHub
It seems like you tried #1 with a project named 1-dot-mapp-develop. If you select deploy from Eclipse, a dialog box will pop up with a link to "App Engine Project Settings" where you can change the project name (to mapp-development and version).
I deployed MVC 4 application to Arvixe.com hosting. In local everything is okay, site opens full, but after deploying, site opens, but, not full. css, jquery, javascript is not working. Only html tags seem.
Arvixe support send this to me: How to Bin Deploy ASP.NET Assemblies on Shared Servers. But I can not understand it well. Can anybody help me to find that why site does not open full? What shloud I check to solve this?
When linking your views and resources you should use relative paths
instead of
"Views/MyView.aspx"
use
"~/Views/MyView.aspx"
This is valid for all resources in your application and it is know to cause these problems.
When working locally the paths are correct since it's all resolved to your computer.
In a web environment you will have to use the relative path so the url is resolved in front of all your resources.
I have been trying to run a symfony project I created recently using symfony 1.4.
But pointing to the url (xyz.in) simply shows up the directory structure of the application
In the CPanel I have edited the document root to be upto app/web/ directory
After doing this all I can see is a blank page and nothing else.
What might be wrong? What are the necessary steps for deploying a symfony project to a shared hosting?
You can check the rights on cache and log directories, Apache needs write rights. Ther are many problems with symfony and shared hosting, but it's not an impossible task.