Re: [appengine-java] Re: Xalan

2009-11-19 Thread Stephan Hartmann
It seems that the classes of the JSTL are loaded by a different classloader than the webapp classloader. Because this class loader does not have xalan in place, it fails. Could you please add xalan to the classpath of this classloder? (If i do this in the eclipse plugin, it works, but only in

Re: [appengine-java] Problem in uploading jsp file

2009-11-24 Thread Stephan Hartmann
You are using a Java Runtime Environment (JRE) which does not include a compiler. You have to use a JDK instead. Regards, Stephan sahil mahajan schrieb: Hello I am working on java google app engine. When I try to upload my application, I receive following error Error Details: Nov

Re: [appengine-java] Re: App instance recycling and response times - is there solution?

2010-01-14 Thread Stephan Hartmann
Jeff, in one point i disagree. In a high available einvironment you would have a cluster of load balanced application servers and you would deploy new versions of your app in turn, one at a time. So if one instance is down the other(s) will continue serving your users (though it might require

Re: [appengine-java] Content caching and Compression

2010-02-16 Thread Stephan Hartmann
AFAIK gzip compression is turned on by default. You can verify this by looking at the content-encoding response header (i use the Live HTTP headers plugin for firebug/firefox). Regards, Stephan 2010/2/15 zainul franciscus zainul.francis...@gmail.com I was browsing through Google App Engine

Re: [appengine-java] Mail API / Sender Email Address

2010-02-16 Thread Stephan Hartmann
You could try to login to app-engine with your google apps account under https://appengine.google.com/a/YOURDOMAIN.COM/ Of course you have to create and deploy a new app instance in this account. I guess it is related to the fact that real google accounts (like google mail) and google apps

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
Could you please provide the source of your Employee and Department classes? And AFAIK you must not use full qualified class names in queries but the simple class name (Department only). Regards, Stephan 2010/2/16 Sushama Khadilkar sush.khadil...@gmail.com package

Re: [appengine-java] how to do initialization at startup?

2010-02-17 Thread Stephan Hartmann
Your app becomes shut down if it does not receive any requests for some time. After that, the next request will initiate a new startup sequence, so the implementation of the servlet spec is correct. You should also implement ServletContextListener.contextDestroyed() to perform cleanup of your

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
). Regards, Stephan 2010/2/17 Sushama Khadilkar sush.khadil...@gmail.com Thanks Stephan Hartmann, But there is another problem now . Does the DataStore will have a Foreign Key of Department in Employee? And , is it visible in the Employee table? Following are my POJO's

Re: [appengine-java] Re: Caching pages.

2010-02-17 Thread Stephan Hartmann
You may consider using OSCache (http://www.opensymphony.com/oscache/) for caching parts of JSPs with its JSP tags or whole responses (don't know if it works with GAE). Cheers, Stephan 2010/2/13 abhi abhishek9...@gmail.com @ bimbo jones - Thanx , thats a good idea, i guess i found out how to

Re: [appengine-java] Suggested migration path for Web app using realm auth and offering web service.

2010-02-17 Thread Stephan Hartmann
For authentication you could use Securityfilter ( http://securityfilter.sourceforge.net/) or Acegi (Spring Security, http://www.acegisecurity.org/) Don't know if either of them works with GAE. About Acegi there has been little discussion here on the list i think. Regards, Stephan 2010/2/17

Re: [appengine-java] filereading error

2010-02-17 Thread Stephan Hartmann
i think the correct pattern is **/*.csv 2010/2/17 cscsaba strongfr...@gmail.com Hello, What is the right way to reading files on GAE I made this preparation below in appengine-web.xml ... resource-files include path=/**.csv / /resource-files ... but I got this error:

Re: [appengine-java] Re: filereading error

2010-02-17 Thread Stephan Hartmann
Hello Stephan, I have tried several combination of include path without result. http://imagebin.org/85235 It seems to me something other factor prevent reading this csv. Have you tried to read resource file on GAE ? On Feb 17, 7:22 pm, Stephan Hartmann hartm...@metamesh.de wrote: i think

Re: [appengine-java] Re: App Engine and Spring slow start up

2010-02-17 Thread Stephan Hartmann
The problem is that the initialization of your app takes longer than 30 seconds. Pinging your app doesn't help when the app is restarted due to redeployment or maintenance, or when high traffic demands a second instance. You should try to reduce your startup time. regards, Stephan 2010/2/17

Re: [appengine-java] Re: how to do initialization at startup?

2010-02-17 Thread Stephan Hartmann
Hi AJ, Your consideration is not specific to GAE. You always have the potential risk that a server could crash and then all your unstored data changes will get lost. So for critical data you should use a write-through cache. However, in a distributed environment like GAE (but not specific to GAE,

Re: [appengine-java] Re: how to do initialization at startup?

2010-02-18 Thread Stephan Hartmann
, you have to do some creative work-around as proposed in GAE documentation. Am I making sense? In any case, I'm hoping someone has an easy/reliable way to keep tracking a counter in memory within GAE. I'll appreciate any suggestion. -aj On Wed, Feb 17, 2010 at 1:56 PM, Stephan Hartmann

Re: [appengine-java] How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread Stephan Hartmann
You say http://appid.appspot.com/test1/ hits the servlet. What happens without a trailing slash? Is it redirected? How does your servlet mappings look like? 2010/2/18 barak barak.ya...@gmail.com Hello all, I've a test servlet to deploy on gae platform, which just read paramters from the

Re: [appengine-java] Re: How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread Stephan Hartmann
servlet-mapping servlet-nametest1/servlet-name url-pattern/test1/*/url-pattern /servlet-mapping On Feb 18, 6:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: You sayhttp://appid.appspot.com/test1/hits the servlet. What happens without a trailing slash? Is it redirected

Re: [appengine-java] Re: Problem with persistance

2010-02-25 Thread Stephan Hartmann
I think in your Offer class you should use getter/setter for mOfferDetail (not a constructor to set the field). 2010/2/25 Anton Klotz dipl.ing.akl...@googlemail.com Hi Jake, thanks a lot for your answer. After changing the mappedBy statement to child like this:

Re: [appengine-java] Re: Problem with persistance

2010-02-25 Thread Stephan Hartmann
2010/2/25 datanucleus andy_jeffer...@yahoo.com I think in your Offer class you should use getter/setter for mOfferDetail (not a constructor to set the field). Can't see why that would make the slightest difference. What does appear iffy is that if you have a bidirectional relation then the

Re: [appengine-java] getting host headers in Java

2010-03-03 Thread Stephan Hartmann
It is part of the servlet spec: javax.servlet.ServletRequest.getServerName() 2010/3/3 deuce4 lynx...@gmail.com Hi, I would like to use the subdomains of my appspot.com domain to set initial user parameters. I'm not really sure how to do this in Java. Google provides the Python example

Re: [appengine-java] Sporadic problems with very high response times

2010-03-04 Thread Stephan Hartmann
Hi Ikai, i wonder what exactly happens in a loading request before the first component (piece of code) of an app is hit? In my case it is a ServletContextListener and the time between the first log entry of the container for the request and the the log entry from my contextInitialized method

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Stephan Hartmann
You should use memcache instead of your servlet env. The memcache service will evict values if you run out of memory. 2010/3/10 Prashant Gupta nextprash...@gmail.com Hi, I have designed my app to keep data (within servlet env.) for all previous requests. For each request it will first

Re: [appengine-java] Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

2010-03-16 Thread Stephan Hartmann
Your JSP file should be not a relative path but absolute, i.e. jsp-file*/absoulute/path/to/*mountain.jsp/jsp-file 2010/3/16 Chris christoph.wor...@gmail.com Hi, I've got a strange problem with (I believe) my servlet mapping. I'm trying to map all requests for /mountain/* to a JSP file

Re: [appengine-java] Servlet request parameters empty

2010-05-04 Thread Stephan Hartmann
if you want to get your data as request parameter, you should use GET instead of POST and /or let the default contentType application/x-www-form-urlencoded and create your json object as either var json = {name: test}; // and let jquery convert it to a query string or var json =

Re: [appengine-java] Re: Servlet request parameters empty

2010-05-04 Thread Stephan Hartmann
, Stephan On May 4, 2:07 am, Stephan Hartmann hartm...@metamesh.de wrote: if you want to get your data as request parameter, you should use GET instead of POST and /or let the default contentType application/x-www-form-urlencoded and create your json object as either var json

Re: [appengine-java] Session and AppEngine

2010-05-05 Thread Stephan Hartmann
What is your logic that initiates a session? The container does not create a session if there is no need for it. In a servlet you can initiate a session by calling HttpServletRequest.getSession(true) and in a JSP by adding the attribute session=true to a page directive. Regards,

Re: [appengine-java] Re: session management

2010-05-27 Thread Stephan Hartmann
Keep in mind that sessions managed by the servlet container expire after a specific time of inactivity on the server side, so if a user comes back after a while with his old session cookie, he will still get a new session. According to the servlet spec, you can obtain this value with

Re: [appengine-java] Re: session management

2010-05-31 Thread Stephan Hartmann
and opens a new browser and we can still identify the client using session cookies? Thanks Romesh On Thu, May 27, 2010 at 10:42 PM, Stephan Hartmann hartm...@metamesh.dewrote: Keep in mind that sessions managed by the servlet container expire after a specific time of inactivity