![](/img/trans.png)
[英]Google Cloud / standard Appengine : running application locally fails
[英]NullPointerException when running gradle for the first time on Google AppEngine Standard project
使用 gradle 初始化 AppEngine 項目時遇到問題。 我正在使用此處描述的代碼Using Gradle and the App Engine Plugin 。
這是 Gradle 第一次拋出的錯誤:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'MemeLib'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:80)
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:73)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$600(LifecycleProjectEvaluator.java:53)
...
Caused by: java.lang.NullPointerException
at com.google.cloud.tools.gradle.appengine.flexible.AppEngineFlexiblePlugin$1.execute(AppEngineFlexiblePlugin.java:86)
at com.google.cloud.tools.gradle.appengine.flexible.AppEngineFlexiblePlugin$1.execute(AppEngineFlexiblePlugin.java:79)
...
在這里找到解決方案
我的項目沒有正確的文件夾結構:對於 App Engine Standard Java, appengine-web.xml
文件必須位於src/main/webapp/WEB-INF
目錄中,並且在我的項目中,我在web/WEB-INF/
創建了該文件web/WEB-INF/
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.