Someone hopefully will correct me if I'm wrong about these...

I believe that the <application> name in appengine.xml must match the name of the application as it is defined on Google. So, if you're trying to upload to an application named "guestbook", then you need to change it to be "guestbook" in appengine.xml.

Also, make sure that you have defined it correctly in the Project setup in Eclipse. Right-click on the Project, select "Properties", then look for the "Google" section. There is a place to define the application name in there, as well.

Dave

On 09/29/2010 10:56 AM, turncom wrote:
My application id is jwigapp.  The application is the example,
Guestbook, from the AppEngine website, for Java. No state secrets
there.

So, here is my appengine-web.xml

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
        <application>jwigapp</application>
        <version>2</version>

        <!-- Configure java.util.logging -->
        <system-properties>
                <property name="java.util.logging.config.file" value="WEB-INF/
logging.properties"/>
        </system-properties>

</appengine-web-app>


Now, this morning I got an idea. Maybe I should change my web.xml to
reflect my jwigapp name. So here is what it looks like now (in part):

        <servlet>
                <servlet-name>guestbook</servlet-name>
                <servlet-class>guestbook.GuestbookServlet</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>guestbook</servlet-name>
                <url-pattern>jwigapp</url-pattern>
        </servlet-mapping>

I did this thinking perhaps that would help. It works on my computer.
But here is the error message I get when I try to upload it using the
Google Plugin:

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Scanning files on local disk.
Initiating update.
java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=jwigapp&version=2&;
400 Bad Request
Error when loading application configuration:
Unable to assign value 'jwigapp' to attribute 'url':
Value 'jwigapp' for key url does not match expression '^(?!\^)/|\.|(\
(.).*(?!\$).$'


I am guessing that expression is a regular expression, which I don't
know how to understand.

I have a feeling the answer is very simple, and that I am looking
right at it, and just miss it.

I have a presentation tomorrow and I would like to show it off.

Grrrrr.



On Sep 28, 7:28 pm, "David C. Hicks"<dhi...@i-hicks.org>  wrote:
   It sounds like the application id you've given to your local
application isn't the same as the application you created on AppEngine. You might want to verify that you're uploading to an application that is
valid.

Dave

On 09/28/2010 07:35 PM, turncom wrote:





         I am using Eclipse (I'm a newbie with Eclipse) and Java (which
         I know).
The app I created (the standard Guestbook) works on my laptop. When I
attempt to upload it using the Google Plugin (and on the command line,
too, for that matter) I get this message:
Unable to update app: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=jwigapp&ver...
<https://appengine.google.com/api/appversion/create?app_id=jwigapp&ver...>
400 Bad Request
Error when loading application configuration:
Unable to assign value 'guestbook' to attribute 'url':
Value 'guestbook' for key url does not match expression
'^(?!\^)/|\.|(\(.).*(?!\$).$'
So......what am I doing wrong? Is there something I am missing in
configuring Eclipse? I've been banging my head on this for two days. I
will do a presentation on Thursday, and I would love to show this off.
--
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-j...@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.

--
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-j...@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.

Reply via email to