I'm trying to deploy spring boot app to app engine and receiving this error:
org.apache.maven.plugin.MojoExecutionException: Dev App Server does not support App Engine Flexible Environment applications.
App Engine allows developers to focus on what they do best: writing code. Based on Compute Engine, the App Engine flexible environment automatically scales your app up and down while also balancing the load.
The standard environment can scale from zero instances up to thousands very quickly. In contrast, the flexible environment must have at least one instance running for each active version and can take longer to scale up in response to traffic. Standard environment uses a custom-designed autoscaling algorithm.
The main App Engine page states "Application code written for the Python environment must be written exclusively in Python. Extensions written in the C language are not supported." We need to port a C/C++ app to a SaaS service.
Check whether you have put appengine-web.xml file under src/main/webapp/WEB-INF folder.
I had a similar issue, but I found that the problem was related to the way the app was packed.
It seems that it is required to be a WAR.
For example, you can put the following line in the pom.xml of your app:
<packaging>war</packaging>
But first, make sure you check what @Ajitesh said about the appengine-web.xml file.
For more details, follow these links: issue and possible solution.
The message is accurate: App Engine Flexible environment doesn't have a local emulator like Dev App Server currently.
Create a file under directory "src/main/webapp/WEB-INF/appengine-web.xml" with the content as below
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
</appengine-web-app>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With