I\'m was following http://googcloudlabs.appspot.com/ tutorial to create new Google App Engine project. It throws me an error as per below when I try to run the from my local
I faced the same issue and resolved it by selecting "Automatically select an unused port" in run configuration.
Found the answer. I need to run in JDK1.6. Once i changed the Java Compiler(right click project -> properties -> Java Compiler -> (Check) Enable project specific settings -> change the Compiler compliance level), its works fine now. Thanks.
When using Java 1.7
, also check for the Execution Environment and set it to JavaSE-1.7
.
You can look into the Execution Environment in:
Right Click
-> Properties
-> Java Compiler
And you have the option above Restore Defaults
and Apply
.
The solution working for me is to run appEngineServer from command line using Gradle, as comments in generated build.xml for endpoints module proposes. And gradle config includes option for Java 1.7 compatibility, so it's no reason to use Java 1.6 if You want 1.7:
gradlew modulename:appengineRun
Currently, the appengine gradle plugin's appengine devappserver launch doesn't interact well with Intellij/AndroidStudio's Gradle integration. As a temporary solution, please launch from the command line. ./gradlew modulename:appengineRun
I had the same issue. for me the problem was one of my filters had an exception. specifically objectify - it was not loaded properly. you can delete the filter and see if that's it
Sometimes it happens there is a "hanging" process that blocks the port. Therefore changing port in Run configuration helps, as well as checking "Automatically select an unused port" in run configuration.