AppEngineConfigException:无效的配置,module.war必须存在并且是一个目录

时间:2015-01-03 08:16:58

标签: java eclipse google-app-engine maven google-eclipse-plugin

我正在使用eclipse luna的最新GAE java sdk和eclipse插件。 我的项目包含使用maven(like here)的Java模块。

当我尝试从eclipse部署ear项目时,我遇到了这个异常:

Caused by: com.google.apphosting.utils.config.AppEngineConfigException: Application directory '--PATH-TO-MY-DEV-SERVER--/module-1.0.war' must exist and be a directory.
at com.google.apphosting.utils.config.EarHelper.reportConfigException(EarHelper.java:92)
at com.google.apphosting.utils.config.EarHelper.getApplicationDirectory(EarHelper.java:192)
at com.google.apphosting.utils.config.EarHelper.readEarInfo(EarHelper.java:116)
at com.google.appengine.tools.development.ApplicationConfigurationManager.readEarConfiguration(ApplicationConfigurationManager.java:203)
at com.google.appengine.tools.development.ApplicationConfigurationManager.<init>(ApplicationConfigurationManager.java:150)
at com.google.appengine.tools.development.ApplicationConfigurationManager.newEarConfigurationManager(ApplicationConfigurationManager.java:66)
at com.google.appengine.tools.development.ApplicationConfigurationManager.newEarConfigurationManager(ApplicationConfigurationManager.java:53)
at com.google.appengine.tools.development.DevAppServerImpl.<init>(DevAppServerImpl.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.appengine.tools.development.DevAppServerFactory.doCreateDevAppServer(DevAppServerFactory.java:258)
at com.google.appengine.tools.development.DevAppServerFactory.access$000(DevAppServerFactory.java:36)
at com.google.appengine.tools.development.DevAppServerFactory$1.run(DevAppServerFactory.java:226)
at com.google.appengine.tools.development.DevAppServerFactory$1.run(DevAppServerFactory.java:224)
at java.security.AccessController.doPrivileged(Native Method)
at com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:224)
at com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:94)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:265)
... 3 more

引用的模块在部署时不会解压缩。它们只作为.war文件存在!

我在eclipse中使用maven import导入了项目。我还创建了新的工作区,并多次删除和清理服务器目录。到目前为止没有成功。

0 个答案:

没有答案