What is your registered application ID? From the looks of the URL that returned 400, you're using ID which is not a valid identifier. Have you registered an application ID via http://appengine.google.com? - Jason
On Fri, Sep 18, 2009 at 2:13 AM, 6real <xirgon...@gmail.com> wrote: > > Hello guys, > > I feel sorry to up this post but I really need help. Can anyone just > guide me to a solution ? I try to change the version number to 0 but > with exactly the same result. > > Thanks a lot. > > On 16 sep, 23:13, 6real <xirgon...@gmail.com> wrote: > > Hi, > > > > my application runs fine locally. I'd like to upload it for the fist > > time and I get the following error : > > > > java.io.IOException: Error posting to URL: > http://appengine.google.com/api/appversion/create?app_id=ID&version=1& > > 400 Bad Request > > Error when loading application configuration: > > while scanning a simple key > > in "<string>", line 23, column 1: > > \ > > ^ > > could not found expected ':' > > in "<string>", line 25, column 9: > > script: unused > > ^ > > > > II try to upload from the Eclipse plugin. > > > > Can someone help me in debugging this ? > > > > Thx ! > > > > ---- > > Note: I posted this message inthe general group and Nick from Google > > advices me to post in the java group with some files. > > Here they are : > > > > web.xml > > -------------------------------- > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE web-app > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > > <web-app> > > <servlet> > > <servlet-name>greetServlet</servlet-name> > > <servlet-class>com.me.myapp.is.server.GreetingServiceImpl</servlet- > > class> > > </servlet> > > <servlet-mapping> > > <servlet-name>greetServlet</servlet-name> > > <url-pattern>/myapp/greet</url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>stationListUpdater</servlet-name> > > <servlet-class>com.me.myapp.is.servlet.StationListUpdater</servlet- > > class> > > </servlet> > > <servlet-mapping> > > <servlet-name>stationListUpdater</servlet-name> > > <url-pattern>/update</url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>StationAvailabilitiesUpdater</servlet-name> > > <servlet- > > class>com.me.myapp.is.servlet.StationAvailabilitiesUpdater</servlet- > > class> > > </servlet> > > <servlet-mapping> > > <servlet-name>StationAvailabilitiesUpdater</servlet-name> > > <url-pattern>/ > > > > </url-pattern> > > </servlet-mapping> > > > > <!-- Default page to serve --> > > <welcome-file-list> > > <welcome-file>myapp.html</welcome-file> > > </welcome-file-list> > > > > <security-constraint> > > <web-resource-collection> > > <url-pattern>/*</url-pattern> > > </web-resource-collection> > > <auth-constraint> > > <role-name>admin</role-name> > > </auth-constraint> > > </security-constraint> > > > > </web-app> > > > > ----------------- > > > > logging.properties : > > # A default java.util.logging configuration. > > # (All App Engine logging is through java.util.logging by default). > > # > > # To use this configuration, copy it into your application's WEB-INF > > # folder and add the following to your appengine-web.xml: > > # > > # <system-properties> > > # <property name="java.util.logging.config.file" value="WEB-INF/ > > logging.properties"/> > > # </system-properties> > > # > > > > # Set the default logging level for all loggers to INFO > > .level = INFO > > > > # Set the default logging level for ORM, specifically, to WARNING > > DataNucleus.JDO.level=WARNING > > DataNucleus.Persistence.level=WARNING > > DataNucleus.Cache.level=WARNING > > DataNucleus.MetaData.level=WARNING > > DataNucleus.General.level=WARNING > > DataNucleus.Utility.level=WARNING > > DataNucleus.Transaction.level=WARNING > > DataNucleus.Datastore.level=WARNING > > DataNucleus.ClassLoading.level=WARNING > > DataNucleus.Plugin.level=WARNING > > DataNucleus.ValueGeneration.level=WARNING > > DataNucleus.Enhancer.level=WARNING > > DataNucleus.SchemaTool.level=WARNING > > > > ------------------- > > cron.xml: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <cronentries> > > <cron> > > <url>/update_availabilities</url> > > <description>Rempli les dispo des groupes - Group Reseau 1</ > > description> > > <schedule>every 3 minutes</schedule> > > </cron> > > > > <!-- <cron>--> > > <!-- <url>/weeklyreport</url>--> > > <!-- <description>Mail out a weekly report</description>--> > > <!-- <schedule>every monday 08:30</schedule>--> > > <!-- <timezone>America/New_York</timezone>--> > > <!-- </cron>--> > > </cronentries> > > > > ------------------- > > <?xml version="1.0" encoding="utf-8"?> > > <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> > > <application>myappid</application> > > <version>1</version> > > > > <!-- Configure java.util.logging --> > > <system-properties> > > <property name="java.util.logging.config.file" > value="WEB-INF/ > > logging.properties"/> > > </system-properties> > > > > </appengine-web-app> > > > > ------------------------ > > > > I use eclipse and the plugin Google App Engine Java SDK 1.2.5 > > 1.2.5.v200909021031 > > com.google.appengine.eclipse.sdkbundle.e35.feature.feature.group > > > > If i try to update with appcfg I get the additionnal log lines : > > > > at com.google.appengine.tools.admin.ServerConnection.send > > (ServerConnection.java:143) > > at com.google.appengine.tools.admin.ServerConnection.post > > (ServerConnection.java:81) > > at com.google.appengine.tools.admin.AppVersionUpload.send > > (AppVersionUpload.java:429) > > at > > com.google.appengine.tools.admin.AppVersionUpload.beginTransaction > > (AppVersionUpload.java:243) > > at com.google.appengine.tools.admin.AppVersionUpload.doUpload > > (AppVersionUpload.java:98) > > at com.google.appengine.tools.admin.AppAdminImpl.update > > (AppAdminImpl.java:53) > > ... 4 more > > > > ----- > > and finally I use as applicationid the id given in the field > > "Application Identifier" under application settings section. > > > > I do not expect a patch but just a workaround :-) or an > > explanation :-) > > > > Thks to everybody for your help. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---