首页 > SAP > SAPUI5 > Run SAPUI5 application in Tomcat Server
2019
08-27

Run SAPUI5 application in Tomcat Server

Hello everyone, in this tutorial we will know how to deploy and run SAPUI5 application in Tomcat server. When you are not connected to any ABAP repository system, you can choose this option of running the SAPUI5 applications locally. So lets get started.

1.Prerequisites

You have installed and configured Tomcat Server in Eclipse.Click here to access this tutorial.

2.Step-by-Step Procedure

1. Create a SAPUI5 Application Project in Eclipse IDE.

2. Enter the project name, leave all other fields as defaults in the window and click on Next

3. Enter the View name and click on Finish to create a new SAPUI5 project.Newly created project will appear in Project Explorer.

4. In the view we will add a button, add below java script code inside the our newly created view “myView”.

5. Save the changes and Right click on the project created in Project Explorer → Run As → Run on Server.

6. Select “Choose an existing server” and Select the server from the list and click on Next.

7. Move the SAPUI5 project from Available to Configured by clicking on Add> button, if you SAPUI5 project is not available in Configured.Click on Finish to deploy the project in Tomcat Server.

8. Now our application is deployed in Tomcat Server and its time to test the application, before that make sure the Server is started. To start the server right click on the server and click on Start. If you are unable to see the Servers in the Eclipse IDE workbench Goto Window → Show View → Servers.

[adsenseyu1]

9. Expand the server the make sure that you can see the SAPUI5 application under it.To test the application expand the project in the Project Explorer and select index.html file and click on Run as button in the application bar.

10. Click on OK button. Output of the SAPUI5 application will be seen like below, you should be able to see the button. You can also run the application in browser by copying the application and paste the Url in browser.

Congratulations, you have successfully deployed and ran the SAPUI5 application in Tomcat Server.

Please stay tuned to us for more

最后编辑:
作者:yangsen
本站为个人博客网站,全由我个人维护,我从事SAP开发13年,其它ERP开发7年,基本都是零售行业。本站记录工作学习的过程, 有SAP相关询问专、兼职工作可随时联系我。 有网站相关的问题可直接在文章下方留言,或者联系我。 邮件:yan252@163.com给我。 QQ:415402519