How do I use app.yaml with Java runtime in App Engine v1.9.18? -


i followed the documentation using app.yaml java claims should work , generate web.xml , appengine-web.xml automatically. however, doesn't seem work , doesn't mention tool generate files.

i first tried mvn clean install errors out because .xml files missing:

[error] failed execute goal org.apache.maven.plugins:maven-war-plugin:2.4:war (default-war) on project roger-analytics: error assembling war: webxml attribute required (or pre-existing web-inf/web.xml if executing in update mode) -> [help 1]

i tried run local development server:

$ gcloud preview app run app.yaml error: (gcloud.preview.app.run) error occurred while parsing file: [/users/blixt/src/roger-api/module_analytics/app.yaml] unexpected attribute 'servlet' object of type urlmap.   in "/users/blixt/src/roger-api/module_analytics/app.yaml", line 7, column 12 

(i same error dev_appserver.py . way)

it appears app.yaml isn't supported after all. missing something, or support removed without updating documentation?

here's app.yaml file, intended run module in google cloud app engine project (along other modules have python , go runtimes):

module: analytics runtime: java api_version: 1  handlers: - url: /*   servlet: im.rgr.roger.rogeranalytics   login: admin   secure:  system_properties:   java.util.logging.config.file: web-inf/logging.properties 

there several issues @ play here. i'll describe various facts group create constellation of sdk edge-case goodness (this information current of sdk 1.9.21):

  • in order deploy using java sdk's appcfg.sh, you'll need have app.yaml inside war/web-inf/ folder.

  • appcfg.py complains unexpected attribute 'servlet' object of type urlmap..

  • gcloud preview app deploy uses appcfg.py (or same codebase) , therefore complains in same manner


so, in conclusion, you'll need use appcfg.sh


Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -