[appengine-java] ગૂગલ માં નવા દાતા કઈ રીતે ઉપ્લોઅદ કરવાંત્રીઅલ

2011-05-15 Thread vimal
હેલ્લો ઈ મારો ત્રીઅલ પોસ્ટ છે. -- 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+unsubs

[appengine-java] Re: Backends.xml ERROR when deploying

2011-05-15 Thread JakeP
I can't provide the exact one because that has my local paths in it. cd to your appcfg.sh directory and run appcfg.py ~/myapp/war backends update once the command is finished, the backed will appear in your admin page. -Jake -- You received this message because you are subscribed to the Go

[appengine-java] JSP page as Warmup Servlet

2011-05-15 Thread Anders
Is it possible to use a JSP page as a warmup Servlet in Google App Engine for Java? Example: search /search.jsp 1 Sice JSP pages are compiled into Servlets this should work in theory, unless JSP pages and ordinary Servlets are treated differently under the hoo

[appengine-java] Re: Problem with Channel API

2011-05-15 Thread James M
Hi Matthew, In your logging.properties file, can you set the logging level to ALL and see if that gives you more information? I've found that in these cases, it's helpful to see exactly what's going on under the hood, before the stack trace is generated. If it's not clear to you what's going on a

[appengine-java] Re: TaskOptions bug: params(name, value) called, request received with no parameters

2011-05-15 Thread Nikita Kuznetsov
Rewrote the code: QueueFactory.getDefaultQueue().add(TaskOptions.Builder.withUrl(some_url). param("some_name", "some_value"). method(TaskOptions.Method.GET)); Works fine now. Method needed to be set or it defaulted to POST and created problems. Disregard piece about it

[appengine-java] Re: App engine SDK jars in WEB-INF/lib. Why???

2011-05-15 Thread Philippe Marschall
On May 16, 5:57 am, Toby Reyelts wrote: > On Sun, May 15, 2011 at 7:58 AM, Philippe Marschall < > > > > > > > > > > philippe.marsch...@gmail.com> wrote: > > > On May 13, 2:29 am, Nichole wrote: > > > Just a quick summary, the servlet spec requires that a servlet > > > container such as appengin

[appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Didier Durand
HI, >From the description of your needs, it seems that the Java inheritance mechanism is all what you need. Yours servlets should all inherit from HomeServlet, in their doGet() method, they will just call super.doGet() at the beginning and then execute their own thing. regards didier On May 15

[appengine-java] unable to send a pdf as attachment in mail

2011-05-15 Thread Vik
Hie Trying to send a pdf created using pdfJet throws the exception class javax.mail.SendFailedException:Send failure (javax.mail.MessagingException: Converting attachment data failed) The code is like: MimeBodyPart htmlPart = new MimeBodyPart(); htmlPart.setFileName("wha

Re: [appengine-java] Re: App engine SDK jars in WEB-INF/lib. Why???

2011-05-15 Thread Toby Reyelts
On Sun, May 15, 2011 at 7:58 AM, Philippe Marschall < philippe.marsch...@gmail.com> wrote: > > > On May 13, 2:29 am, Nichole wrote: > > Just a quick summary, the servlet spec requires that a servlet > > container such as appengine > > provider an implementation for a service. Those jars such as

[appengine-java] TaskOptions bug: params(name, value) called, request received with no parameters

2011-05-15 Thread Nikita Kuznetsov
Get queue, create task, add task to queue: Queue q = QueueFactory.getDefaultQueue(); TaskOptions opts = TaskOptions.Builder.withUrl(some_url); opts.param("some_name", "some_value"); q.add(opts); The task is executed but HttpServletRequest.getParameterMap().size() == 0 for

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
Great! Glad to hear you got it working. On Sun, May 15, 2011 at 7:18 PM, Vik wrote: > Thanks a lot Stephen ! I could complete the code and testing now. Your > great support will really help our cause to serve the needy. > > > > Thankx and Regards > > Vik > Founder > http://www.sakshum.org > http

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Vik
Thanks a lot Stephen ! I could complete the code and testing now. Your great support will really help our cause to serve the needy. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, May 15, 2011 at 11:15 PM, Stephen Johnson wrote: > The code snippet is fro

Re: [appengine-java] Re: Backends.xml ERROR when deploying

2011-05-15 Thread Dennis Lo
Hi Jake, Can you give me the exact command you used? I'm not sure how to use appcfg.sh for the backend features. I'm actually planning to use the affcfg.py (which I believe is the same but just the python version) So what are the and [update] values supposed to be to make these backends.xml appe

Re: [appengine-java] Will requests from the same source typically be routed to the same GAE instance?

2011-05-15 Thread Ian Clarke
Thanks Pieter, yes, it sounds like namespaces will solve this problem for me. Ian. -- 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 t

Re: [appengine-java] Will requests from the same source typically be routed to the same GAE instance?

2011-05-15 Thread Pieter Coucke
memcache is shared between all instances, so there's no need to check this you should also have a look at datastore namespaces On Sunday, May 15, 2011, Ian Clarke wrote: > I'm planning to build a web service on GAE that I anticipate having to deal > with significant amounts of load.  I there

[appengine-java] Will requests from the same source typically be routed to the same GAE instance?

2011-05-15 Thread Ian Clarke
I'm planning to build a web service on GAE that I anticipate having to deal with significant amounts of load. I therefore want to make full use of memcache such that hopefully, most requests won't need to go to the datastore. There will be several different users of this web service, and each

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Ravi Sharma
in my blof i just hardcoded the subdomain... u can use it as generic...and use multitenancy apis So have only one Controller and set header like namspace=or use any variable name u like to have then first thing you do in ur controller is set name space and then if u call test.ursite.com i

[appengine-java] Vs: Re: Vs: Re: Stripes + UrlBinding + Google App Engine

2011-05-15 Thread Pauli Savolainen
Hello I did implement an empty mulitpart wrapper as I listed in my previous message so that was not the problem. Fortunately, I did solve my problem. The problem was not in the Stripes configuration at all. I had a following tag in my web.xml: *.jsp /jsp/include.jsp

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
The code snippet is from the link I provided. Replace the attachmentData in the code snippet with the byte[] array returned from toByteArray(). You do not convert the ServletResponseOutputStream to a ByteArrayOutputStream. Create your own ByteArrayOuputStream. You want to send the PDF as an attachm

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Prashant
thanks Ravi and Stephen for your responses. my application needs to do mapping at run time, i.e. it wouldn't be knowing how may subdomains it would be handling, so, i can't not use your techniques :( On Sun, May 15, 2011 at 10:13 PM, Stephen Johnson wrote: > You should be able to use the Request

[appengine-java] Re: Backends.xml ERROR when deploying

2011-05-15 Thread JakeP
Dennis, You're half-way there :) GAE won't create a backend for you until you use the appcfg.sh 'update' command to update the backends. Check out the docs here: http://code.google.com/appengine/docs/java/backends/overview.html#Commands I also was really expecting the backends.xml file backends

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Vik
Thanks 2 futher things 1. What is the link between toByteArray() and attachment part of the code? I mean i do not see the byteArray being used anywhere in the code you provided. 2. Servlet response is giving ServletResponseOutputStream and on googling i did not find a way to convert it to ByteArr

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
Hi Vik, Call toByteArray() method on ByteArrayOutputStream when finished with creating PDF and then MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName("whatever.pdf"); attachment.setContent(attachmentData, "application/pdf"); mp.addBodyPart(attachm

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Stephen Johnson
You should be able to use the RequestDispatcher object to do what you want but you'll have to have mappings in web.xml for each of the servlets your forwarding to for instance MyGalleryApp would have mappings that all start with /MyGalleryApp/ (or something similar) so GalleryServlet would map to s

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Vik
Hie Stephon Still I am not sure on the part that ultimately how will i use this stream to attach the generated pdf as an attachment in the email. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, May 15, 2011 at 9:56 PM, Stephen Johnson wrote:

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
You're writing the PDF as your web page output. Use a ByteArrayOutputStream instead. On Sun, May 15, 2011 at 7:16 AM, Vik wrote: > Hie > > Just a little question. I am using this pdfJet thing. > The requirement for us is to create a pdf and then mail it to a user. > > So i am done with pdf creat

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Prashant
thanks a lot Ravi. i will read your article and give it a try On Sun, May 15, 2011 at 8:20 PM, Ravi Sharma wrote: > Using Spring MVC you could use it to solve the problem. > Basically you want different Controller for http://www.mainsite.com and > http://test.mainsite.com > > I have used it

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Ravi Sharma
Using Spring MVC you could use it to solve the problem. Basically you want different Controller for http://www.mainsite.com and http://test.mainsite.com I have used it in one of my application. I write all the steps in a blog here. I hope it will helpfull http://techsravi.blogspot.com/2011/05/man

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Prashant
no, sorry :( . i want (kind of) server side redirect. you can think of a scenario where multiple applications are hosted in a single google appengine app but each app has to respond to its own unique domain. all the applications are handled by a master application. master application will accept al

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Vik
Hie Just a little question. I am using this pdfJet thing. The requirement for us is to create a pdf and then mail it to a user. So i am done with pdf creation part and at then end i have the code like: OutputStream out = resp.getOutputStream(); PDF pdf = new PDF(out); some actual writing.

[appengine-java] Re: UserService.getCurrentUser() returning null sometimes

2011-05-15 Thread Brandon Donnelson
Dev or Production side? I've had this happen on the dev side at times. I haven't seen it recently in my app. Brandon Donnelson http://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this gro

[appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Brandon Donnelson
Do you mean: response.sendRedirect(url); Brandon Donnelson http://gwt-examples.googlecode.com -- 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 unsubscr

[appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Prashant
anyone ? On Sun, May 15, 2011 at 5:30 PM, Prashant wrote: > hi, > > i want to use a common servlet (say MainServlet) to handle all the requests > and based on url requested i want to transfer request to a different > servlet. for example: > if requested url is www.mydomain.com/* i want to send r

[appengine-java] Re: Backends.xml ERROR when deploying

2011-05-15 Thread Dennis Lo
I think you need to use a uppercase "B" for the classes. When I tried deploying using a lowercase "b1" eclipse was complating about a volidation with the backends.xsd. Try this: B1 1 However, I can get it to deploy. But it still says: "You have not created any backends fo

[appengine-java] Re: Backends.xml ERROR when deploying

2011-05-15 Thread Dennis Lo
Hi JakeP Can you please give me specifics on how to get the backend instance to appear in the "Backend" tab within my app engine admin portal? I've got the following inside my backend.xml b2 1 It deploys fine. However, it still doesn't appear in the "backen

[appengine-java] Re: Vs: Re: Stripes + UrlBinding + Google App Engine

2011-05-15 Thread Mike Lawrence
there is no file system in gae so the multipart wrapper could be your problem. it probably would work locally by not in prod On May 15, 8:30 am, Mike Lawrence wrote: > sorry you're having problems. > dont think this is an app engine issue > since many folks use stripes on gae. > here are the stri

[appengine-java] Re: Vs: Re: Stripes + UrlBinding + Google App Engine

2011-05-15 Thread Mike Lawrence
sorry you're having problems. dont think this is an app engine issue since many folks use stripes on gae. here are the stripe parts from my web XML http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http:// java.sun.com/xml/ns/javaee/web-app_

[appengine-java] how to transfer request to a different servlet ?

2011-05-15 Thread Prashant
hi, i want to use a common servlet (say MainServlet) to handle all the requests and based on url requested i want to transfer request to a different servlet. for example: if requested url is www.mydomain.com/* i want to send request to HomeServlet and if requested url is test.mydomain.com/* i want

[appengine-java] Re: App engine SDK jars in WEB-INF/lib. Why???

2011-05-15 Thread Philippe Marschall
On May 13, 2:29 am, Nichole wrote: > Just a quick summary, the servlet spec requires that a servlet > container such as appengine > provider an implementation for a service.  Those jars such as servlet- > api-2.4.jar are needed > at compile time. That's why there's provided scope in Maven. > T

[appengine-java] Re: How To: Persist an entity, if and only if, another successfully persists

2011-05-15 Thread Nichole
I like Jeff's solution as it's failsafe, but one more pattern I often use is to set a couple of flags, and complete the 2nd action in a finally clause if needed. The timeout for the 30 sec limit does allow for a very quick transaction to still succeed, so I use that time to persist any state neede

[appengine-java] Re: Setting Namespace for an entire Request

2011-05-15 Thread Nichole
According to the docs, the namespace is set globally within the app, but you can use it "On a per-User Basis" for users that are logged in as an example and that user is the tenant. The docs aren't clear, but the namespace must be globally just for that tenant, yes? If that's the case, then you

[appengine-java] Re: Problem with Channel API

2011-05-15 Thread Matthew Smalley
Oops forgot the stack trace: (this is from the google appengine log viewer): Uncaught exception from servlet com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. at com.google.appengine.api.channel.ChannelServiceImpl.getExceptionForError(ChannelService