Hi,

Trying to enable auto-restarts and class hot-reloading for a Java app by 
adding  spring-boot-devtools to an App Engine Standard Java 8 app. I get 
the following error when I run "mvn appengine:run":

[INFO] GCLOUD: java.lang.IllegalArgumentException: Unable to find the main 
class to restart
[INFO] GCLOUD: at org.springframework.util.Assert.notNull(Assert.java:134)
[INFO] GCLOUD: at 
org.springframework.boot.devtools.restart.Restarter.doStart(Restarter.java:285)
[INFO] GCLOUD: at 
org.springframework.boot.devtools.restart.Restarter.start(Restarter.java:273)
[INFO] GCLOUD: at 
org.springframework.boot.devtools.restart.Restarter$1.call(Restarter.java:174)
[INFO] GCLOUD: at 
org.springframework.boot.devtools.restart.Restarter$1.call(Restarter.java:170)
[INFO] GCLOUD: at 
org.springframework.boot.devtools.restart.Restarter$LeakSafeThread.run(Restarter.java:627)

The app starts fine if I remove the spring-boot-devtools dependency but 
then I have to restart the app manually every time I change something:

  <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      <exclusions>
        <exclusion>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

Is there a ways to get spring-boot-devtools working with App Engine? What's 
the recommended way for hot-reloading/auto-restarts for App Engine Java 
applications?

Full codebase available here for reference: 
https://github.com/mustpax/appengine-java-spring-boot-test

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/94ed0476-98df-497c-980b-f083630d6e61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Mustafa Paksoy

Reply via email to