gae-module

GAE/GWT: Error loading modules: Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml'

让人想犯罪 __ 提交于 2020-01-03 13:37:35
问题 I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows: Loading modules com.androidstartup.serialization.KPadProject [ERROR] Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doSlowStartup method The main module /KPadProject.gwt.xml is in the root package. I checked out the configuration

How to share sessions between modules on a Google App Engine Java application?

给你一囗甜甜゛ 提交于 2019-12-21 19:18:07
问题 When I store something in the session via HttpSession in module A: HttpSession session = req.getSession(true); session.setAttribute("username", "Eng.Fouad"); then I try to retrieve this information from within module B (during the same browser session): HttpSession session = req.getSession(true); String username = session.getAttribute("username"); // null! I got null as a value, which means different session. How to share session across multiple modules in GAE? Old Answer which I think it

Cannot run Google App Engine custom managed VM: --custom-entrypoint must be set error

冷暖自知 提交于 2019-12-18 11:44:24
问题 PROBLEM DESCRIPTION I am trying to create a custom managed VM for Google App Engine that behaves identically to the standard python27 managed VM provided by Google. (I'm doing this as a first step to adding a C++ library to the runtime). From google documentation, the following Dockerfile specifies the standard python27 runtime: FROM gcr.io/google_appengine/python-compat ADD . /app I have verified that this is the right Dockerfile by examining the one generated by gcloud preview app run when

Converting App Engine frontend versions to modules

喜你入骨 提交于 2019-12-12 03:44:17
问题 I've slightly "abused" the front-end "version" concept in App Engine (java), to implement modules before they were introduced. I have a configuration consisting of: module1-dot-myapp.appspot.com, module2-dot-myapp.appspot.com, module3-dot-myapp.appspot.com, etc., based on the version concept (more commonly used with numbers: 1-dot-myapp, etc.). Specifically, the code in all versions is identical, but each is practically used for different purposes. This separation allows different clients to

How to set targeted Modules for specific URL in AppEngine + Java

核能气质少年 提交于 2019-12-11 14:57:22
问题 In Backends base app engine project(Java) i was doing Queue queue = QueueFactory.getQueue("userou-queue"); TaskOptions objTskOptions = TaskOptions.Builder.withUrl("/backendsURL/") .countdownMillis(2000) .header("Host", BackendServiceFactory.getBackendService().getBackendAddress("backendname")) .method(Method.GET); queue.add(objTskOptions); But now for Modules How can i target a specific Module for my specific URL. Please help me. 回答1: From App Engine documentation: The following code sample

Compiled templates with macros do not work on app engine

眉间皱痕 提交于 2019-12-10 20:22:03
问题 I use Jinja2 compiled templates and a module loader to load the compiled templates (python code) from the datastore. But when my template contains a macro it does not work on app engine: TypeError: 'NoneType' object is not callable But in the app engine SDK it works fine. And when I skip the macro call, i receive the same error. Without the macro it works fine. Without a solution for this macro problem, I call a python function in my template to implement the functionality of the macro.

Create Google App Engine Project in Eclipse with Modules

人走茶凉 提交于 2019-12-08 17:24:26
问题 I have been writing a GAE app with Eclipse with Maven as suggested on cloud.google.com. Recently, I needed to use "backends" or a different set of instances to handle a certain task. I found out that "backends" have been deprecated in favor of "modules". I have spent the last couple of days trying to set up the project to use modules and have made very little progress. All I want to do is have different URLs dispatch to different sets of instances (using modules and dispatch.xml). Does

Appengine modules dispatch.xml routing with custom domain

不羁岁月 提交于 2019-12-06 15:04:23
问题 I have someone got appengine modules working. i have two modules, app and auth . i have a custom domain say domain.com , i want to route app.domain.com to app module, and auth.domain.com to auth modules, following is my dispatch.xml file, <dispatch> <!-- Default module serves simple hostname request. --> <url>*/favicon.ico</url> <module>default</module> </dispatch> <dispatch> <!-- Auth Service to auth module --> <url>auth./*</url> <module>auth</module> </dispatch> <dispatch> <!-- Default

Appengine Modules Maven Error during DevSever Goal Run

两盒软妹~` 提交于 2019-12-06 11:54:13
问题 i have been trying to run a new project with modules support, but am getting following error all the time, unable to debug it, com.google.apphosting.utils.config.EarHelper reportConfigException [INFO] INFO: Application directory 'path-to-project/DemoEar-1.0.0-SNAPSHOT/DemoWarApp' must exist and be a directory. my module structure is below main application.xml contains <module> <web> <web-uri>DemoWarApp</web-uri> <context-root>DemoWarApp</context-root> </web> </module> its clearly not pointing

App Engine Python Modules and channel service

五迷三道 提交于 2019-12-05 17:49:17
问题 I am using App Engine Modules in my python project. (https://developers.google.com/appengine/docs/python/modules/#Python_Background_threads) I am also using channels in m project: https://developers.google.com/appengine/docs/python/channel/ I want to direct the connected/disconnected post messages ('/_ah/channel/connected/', '/_ah/channel/disconnected/') to my api module. Right now I can't get them to show up in any module (default or api) app.yaml api_version: 1 application: integrate