Following are pre-requisites to get started quickly:
Once done with above, you are all set. Follow the steps given below and you shall have your decent looking hello world web application in no time.
Create a Google Web Application project as shown in the pictures below. Take a note of the diagram representing the creation of App Id. You could go to Web and create an App Id or create Id from within Eclipse. However, the ID is MUST for you to be able to deploy your application from within Eclipse without any hassles.
Right click on project and click on “Run As” -> “Web Application”. Chances are you will get error related to timezone and embedded server (Jetty) won’t start. The way to fix the error is following:
– Right click on project and click on “Run As” -> “Run Configurations”. Add “-Dappengine.user.timezone.impl=UTC” as shown in the diagram below. Start the server and you should be able to start.
Access the application at http://127.0.0.1:8888/<somefilename>.html
It is time to add bells and whistles. Once created, create few JSP files under WAR folder. Also, place bootstrap folder within WAR folder as shown in below picture. For you to be able to set the default file as index.jsp, change the configuration in WEB-INF/web.xml.
Start the server. Chances will be that server will fail to start. It will give errors related compiling with JSP saying use JDK rather than JRE. To fix this error, you need to set JDK configuration same as in GAE and eclipse. Thus, you need to do following two things.
– Fix Eclipse Configuration (eclipse.ini) by defining “-vm” path. This is a path to javaw.exe in JDK installation. See the diagram below.
– Fix GAE JDK configuration. Right click on project and click on “Run As” -> “Run Configurations”. Go to JRE tab and set the JDK path for JDK installation and not JRE.
Deploy your web application on App Engine by doing right-click on your project and clicking on “Google” – “Deploy to App Engine”.
If you face any issues with above steps, let me know and I shall help you to get it resolved.
Artificial Intelligence (AI) agents have started becoming an integral part of our lives. Imagine asking…
In the ever-evolving landscape of agentic AI workflows and applications, understanding and leveraging design patterns…
In this blog, I aim to provide a comprehensive list of valuable resources for learning…
Have you ever wondered how systems determine whether to grant or deny access, and how…
What revolutionary technologies and industries will define the future of business in 2025? As we…
For data scientists and machine learning researchers, 2024 has been a landmark year in AI…