I tried using the said configuration in my web.xml. I ran appcfg.py download_data --url=http://localhost/remote_api ... But I couldn't get it to work. I'm getting an "Authentication Failed" error:
error: [Errno 54] Connection reset by peer [INFO ] Authentication Failed To further isolate things, I tested it with the sample Guestbook application that comes with the SDK for Java. I added the entry in web.xml. I tested using a browser, it redirects me to a login page. So, I'm guessing the web.xml configuration works. I then tried running appcfg.py download_data again. But I'm still getting the same error. I don't think it's an authentication error (since I'm only running on localhost). I also added app.yaml and the necessary Python classes as exporters. What's interesting is that I can download data from the Guestbook application (written in Python) that comes with the SDK for Python. Sorry, I'm not a Python expert. So, I'm not sure if appcfg.py download_data works with a Java-based application (as indicated in the documentation). Any updates or documentation on this would be greatly appreciated. Cheers On Feb 25, 8:37 am, "Ikai L (Google)" <[email protected]> wrote: > You should be able to connect this: > > <?xml version="1.0" encoding="utf-8"?> > <web-app> > <!-- Add this to your web.xml to enable remote API on Java. --> > <servlet> > <servlet-name>remoteapi</servlet-name> > > <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>remoteapi</servlet-name> > <url-pattern>/remote_api</url-pattern> > </servlet-mapping> > <security-constraint> > <web-resource-collection> > <web-resource-name>remoteapi</web-resource-name> > <url-pattern>/remote_api</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>admin</role-name> > </auth-constraint> > </security-constraint> > </web-app> > > I'll dig for some sample code for the Java bulkloader. We're working > on official docs. > > > > On Tue, Feb 9, 2010 at 1:22 AM, emerix <[email protected]> wrote: > > Hi, > > Does anybody have some news on the remote_api for java ? It would be > > great to be able to use our JDO/JPA objects to interact with the > > datastore without having to upload a version to appengine ! > > > Thanx :) > > emerix > > > -- > > 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 > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
