Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dev App Server does not support App Engine Flexible Environment applications

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.
like image 423
Souji Tendo Avatar asked May 06 '17 17:05

Souji Tendo


People also ask

What is flexible environment in Google App Engine?

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.

What is the difference between APP engine standard and flexible?

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.

Does App Engine flex support C++?

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.


4 Answers

Check whether you have put appengine-web.xml file under src/main/webapp/WEB-INF folder.

like image 193
Ajitesh Avatar answered Sep 27 '22 23:09

Ajitesh


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.

like image 29
alexandrum Avatar answered Sep 30 '22 23:09

alexandrum


The message is accurate: App Engine Flexible environment doesn't have a local emulator like Dev App Server currently.

like image 43
Rodrigo de Castro Avatar answered Sep 27 '22 23:09

Rodrigo de Castro


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>
like image 31
Shivam Dutta Avatar answered Sep 27 '22 23:09

Shivam Dutta