[appengine-java] Re: Can't get log4j working

2011-10-16 Thread Martin Newstead
make sure your log4j.properties gets copied to your classes directory when you build the application. You should need to use the system property to tell the application or web server where the file is so long as the location is on the classpath which WEB-INF/classes is. On Oct 15, 8:12 pm, Andrew

[appengine-java] Re: Elevations API, polyline encoding, Google App Engine

2011-08-17 Thread Martin Newstead
too much. On Aug 16, 2011 4:33 AM, Martin Newstead skankmar...@hotmail.com wrote: I hope someone can help me get some ideas on how to debug this problem. I have build an application that needs to use the Google Elevations webservice API to get some elevations for some lat/lon pairs. I am

[appengine-java] Re: QUOTAs, usage limits

2011-08-17 Thread Martin Newstead
Thanks, I suspected that would be the case so will work on a solution that doesn't use Google Elevations API for this. On Aug 16, 4:28 pm, Simon Knott knott.si...@gmail.com wrote: It means that you will very likely require a proxy server in the middle.   GAE doesn't allow you to present a

[appengine-java] Elevations API, polyline encoding, Google App Engine

2011-08-16 Thread Martin Newstead
I hope someone can help me get some ideas on how to debug this problem. I have build an application that needs to use the Google Elevations webservice API to get some elevations for some lat/lon pairs. I am encoding the data using my own Java implementation of the polyline encoding algorithm. My

[appengine-java] QUOTAs, usage limits

2011-08-16 Thread Martin Newstead
I am building my application to use the Google Elevations Webservice API which has usage quotas which is apparantly checked by IP of the caller, 1000 requests perday. what does this mean in the GAE environment ? will the Elevations webservice always see my app with the same IP ? Will other apps in

[appengine-java] Re: Cannot to read the file under /WEB-INF/classes/

2011-07-17 Thread Martin Newstead
I have a config file in WEB-INF/conf and I pass the location using an init-param (called propfile) to a servlet. Then in the servlet I use propFile = getServletConfig().getInitParameter(propfile); base = getServletContext().getRealPath() + FS; where FS is

[appengine-java] JDO: 1-N relationships

2011-06-24 Thread Martin Newstead
I would like some help and advice on how to model my entities using JDO on GAE. My problem is this, I have a bunch of Users and each User may create zero or more Tracks. Users may exist without a Track but Tracks may not exist without a User who created them. Other attributes on the User and the

[appengine-java] Help ! Datanucleus class cast Exception

2011-04-03 Thread Martin Newstead
Firstly apologies if I have posted in the wrong place, I am sure someone will kindly tell me where is more appropriate. I have built a new application, I have already deployed one with identical architecture successfully but not encountered this error before. My application runs well on Tomcat

[appengine-java] Re: Help ! Datanucleus class cast Exception

2011-04-03 Thread Martin Newstead
Update: Digging into the source code for org.datanucleus.store.appengine.query.DatastoreQuery.getSortProperty allowed me to figure out what was causing the problem. In the follow code, the emboldened on is the one that threw the exception, it will be noticed that I have ordered by 'keyx' which