appcfg update
command,
passing the directory path of the EAR: appcfg update <directory-path>
appcfg update D:\my-project\ear
It says the same error: com.google.apphosting.utils.config.AppEngineConfigException: Could not locate D:\my-project\ear\WEB-INF\appengine-web.xml
The folder structure of my-projects is total a clone from the above GAE document link.
Sometimes, GAE documents are really frustrating.
This page mentions all modules instances will be started. https://developers.google.com/appengine/docs/java/modules/routingBut I don't how to do this. When call dev_server on a second module, it says:Could not open the requested socket: Address already in use: bind. Try overriding --address and/or --port.
If I call dev_server on the ear directory, it says
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate D:\my-project\ear\WEB-INF\appengine-web.xmlyes, there is no WEB-INF in the ear folder but only a META‑INF folder and module folders in the ear folder.
The folder structure of my-projects is total a clone from the above GAE document link.
On Wed, Jan 1, 2014 at 11:03 PM, Tapir <tapi...@gmail.com> wrote:
This page mentions all modules instances will be started. https://developers.google.com/appengine/docs/java/modules/routingBut I don't how to do this. When call dev_server on a second module, it says:Could not open the requested socket: Address already in use: bind. Try overriding --address and/or --port.The dev server should be starting up all the modules automatically, you don't need to call the dev server a second time.When you call the dev server on the second module - after already calling it on the first module - the second dev server instance is unable to run because (as it points out in the error text) the first dev server instance is already bound to the port. So this is correct behavior.On Wed, Jan 1, 2014 at 11:03 PM, Tapir <tapi...@gmail.com> wrote:
If I call dev_server on the ear directory, it says
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate D:\my-project\ear\WEB-INF\appengine-web.xmlyes, there is no WEB-INF in the ear folder but only a META‑INF folder and module folders in the ear folder.More than likely, the dev server is interpreting your folder as a basic, single-module application rather than a multi-module application (i.e. JAR rather than an EAR). Can you post the stack trace for the AppEngineConfigException?
How to let dev_server not interpret the folder as a single-module app?The folder structure is like this:my-project--- ear------ META-INF--------- appengine-application.xml--------- application.xml------ default--------- war------------ WEB-INF--------------- appengine-web.xml---------------- web.xml------ websockets--------- war------------ WEB-INF
at com.google.appengine.tools.development.ApplicationConfigurationManager$WarModuleConfigurationHandle.readConfiguration(ApplicationConfigurationManager.java:399)
appcfg update D:\my-project\target\ear-name
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.
--
btw, how to use different languages in different modules of one projects?I heard it is possible, but how to implement it?
I execute the backends commands directly in the target folder, so first i build it and then:appcfg update D:\my-project\target\ear-name
When you build your project, in the target folder the WEB-INF at the root directory is your main appengine-web.xml file wich is what you need. Have you tried it?
Ok, found the problem by accident.After finding the google maven example on github works well, I copied the META‑INF folder to my project.A replace files dialog was expected to show up.But, no, it didn't show!Then there are two META‑INF folders in my project.Two identical folders in my project!!!Researched it for a while, I copy the two folder name into a notepad file, the difference is obvious.One "‑" character is longer than the other one.(But in windows file explorer, they are the same length! However, in IE browser, the shorter one becomes longer)The hexdump shows the longer is e22d 9180, the shorter one is 000A.Ok, the short one is the correct one. It is META‑INFThe longer one is META-INF.
Tapir, was the bad character in the App Engine documentation somewhere? If so, where?