[google-appengine] Problems with login and GWT history token

2010-05-12 Thread l.denardo
Hello,
I'm currently facing some problems using Appengine authentication and
GWT.
I built an application on Appengine which uses google login to
authenticate users and is currently deployed on a Google Apps domain
and restricted to users of that domain.
On client side I use GWT and use history token to track which items
the user opened, so that a customer can bookmark an item and open it
immediately.

E.g http://myapp.appspot.com/Page.jsp#pid=aglub784trskjvn
will open the page referring the object with the given key

http://myapp.appspot.com/Page.jsp#pid=null
will open an empty page

#pid=null is set as a default history token if none is provided.

My problem is that login service resets history tokens, so that a not
logged in user accessing a page for a given object is redirected to
the empty page after login.

A user accessing
http://myapp.appspot.com/Page.jsp#pid=aglub784trskjvn
is redirected after login to http://myapp.appspot.com/Page.jsp

If the user is already logged in bookmarks work fine, opening the
correct page.

Is there a way to keep history token active during the login process?
Is there any documentation on the subject?

Thanks to everybody.

Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] When will OpenID authentication be enabled

2010-05-26 Thread l.denardo
Hello,
openID authentication does not seem to be active neither in the
"application settings" tab nor when creating a new application.
The only available options are google accounts and google apps, not
switchable after the application has been created.
I wonder when new OpenID option will be available for production, or
if I'm missing something in my configuration (obviously using GAE
1.3.4).

Thanks in advance for any information on this
Regards

Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: When will OpenID authentication be enabled

2010-05-27 Thread l.denardo
Thanks very much.
So it seems a problem in my configuration, since I only have Google
Apps in my authentcation options (both in Application Settings ->
Authentication options, and from "create an application" in
appengine.google.com), no choice for OpenID.
Maybe I need to create a new application from scratch, or to use my
regular gmail account instead of my google apps account.

Thank you anyway for your advice.
Lorenzo

On May 27, 5:28 am, Vladimir Prudnikov  wrote:
> It works for me, I just switched one of my application to the OpenID option
> 2 days ago.
>
> Application Settings -> Authentication Options -> (Experimental) Federated
> Login
>
> On 26 May 2010 15:41, l.denardo  wrote:
>
>
>
> > Hello,
> > openID authentication does not seem to be active neither in the
> > "application settings" tab nor when creating a new application.
> > The only available options are google accounts and google apps, not
> > switchable after the application has been created.
> > I wonder when new OpenID option will be available for production, or
> > if I'm missing something in my configuration (obviously using GAE
> > 1.3.4).
>
> > Thanks in advance for any information on this
> > Regards
>
> > Lorenzo
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Regards, Vladimir Prudnikov.
> Email: pru...@gmail.com
> 
> This message contains information which may be confidential and privileged.
> Unless you are the addressee (or authorized to receive for the addressee),
> you may not use, copy or disclose to anyone the message or any information
> contained in the message. If you have received the message in error, please
> advise the sender and delete the message. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: When will OpenID authentication be enabled

2010-05-27 Thread l.denardo
Update: authentication options are now available for new applications,
and seem to have been unlocked for another one I had already deployed.

Maybe it's because the other app I wanted to use OpenID was restricted
to a Google Apps domain, and according to documentation

http://code.google.com/appengine/docs/java/users/overview.html

"Note that once you have created your app, your options for changing
the authentication option are. In particular, you can only switch
between Google Accounts and OpenID (Federated Login)".
So I guess i'll need to deploy my app again using OpenID as an option.

Thank you again Vladimir
Lorenzo

On May 27, 9:39 am, "l.denardo"  wrote:
> Thanks very much.
> So it seems a problem in my configuration, since I only have Google
> Apps in my authentcation options (both in Application Settings ->
> Authentication options, and from "create an application" in
> appengine.google.com), no choice for OpenID.
> Maybe I need to create a new application from scratch, or to use my
> regular gmail account instead of my google apps account.
>
> Thank you anyway for your advice.
> Lorenzo
>
> On May 27, 5:28 am, Vladimir Prudnikov  wrote:
>
> > It works for me, I just switched one of my application to the OpenID option
> > 2 days ago.
>
> > Application Settings -> Authentication Options -> (Experimental) Federated
> > Login
>
> > On 26 May 2010 15:41, l.denardo  wrote:
>
> > > Hello,
> > > openID authentication does not seem to be active neither in the
> > > "application settings" tab nor when creating a new application.
> > > The only available options are google accounts and google apps, not
> > > switchable after the application has been created.
> > > I wonder when new OpenID option will be available for production, or
> > > if I'm missing something in my configuration (obviously using GAE
> > > 1.3.4).
>
> > > Thanks in advance for any information on this
> > > Regards
>
> > > Lorenzo
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > Regards, Vladimir Prudnikov.
> > Email: pru...@gmail.com
> > 
> > This message contains information which may be confidential and privileged.
> > Unless you are the addressee (or authorized to receive for the addressee),
> > you may not use, copy or disclose to anyone the message or any information
> > contained in the message. If you have received the message in error, please
> > advise the sender and delete the message. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] OpenID logout link redirect

2010-05-27 Thread l.denardo
Hello,
I managed starting openID authentication for my app on GAE.

Login works correctly with gmail accounts if _ah/login_required is not
under a security constraint in web.xml.
Then, I show the user a JSP page, Header.jsp listing user's email and
a logout link.

Generating logout link with
String logoutURL =
authenticator.createLogoutURL(request.getRequestURI());
I get
http://myapp.appspot.com/_ah/openid_logout?continue=http://myapp.appspot.com/Header.jsp

Which logs out the user correctly.

What is unusual is the fact that I've deployed a servlet to allow user
to log out from google accounts also, mapped to
_ah/openid_logout which should prompt the user with Google accounts
logout link, so they can log out from Google.

This servlet seems to be completely bypassed using logout link: no
requests to openid_logout show in application logs, nothing is shown
from servlet, user gets immediate redirect to the app (and is prompted
to authorize the app again if authorization was not saved).
Firebug shows correct GET to logout url anyway...

If you manually change the value of "continue" parameter, say to
http://www.google.com, my logout servlet works perfectly, showing
Google's logout link, and request shows in log.

Any advice about this behavior in redirection? this does not seem to
be covered in http://code.google.com/appengine/docs/java/users/overview.html

Thanks a lot
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: OpenID logout link redirect

2010-05-28 Thread l.denardo
Even worse, if the user does save the authorization for the app, when
logged out gets redirected immediately to the app page, and being
still logged in to Google gets to the page again, making the logout
link seem just broken, when in fact user is logged out and then logged
in again authomatically.

Is there any workaround for this?

Thank you
Lorenzo

On May 27, 5:49 pm, "l.denardo"  wrote:
> Hello,
> I managed starting openID authentication for my app on GAE.
>
> Login works correctly with gmail accounts if _ah/login_required is not
> under a security constraint in web.xml.
> Then, I show the user a JSP page, Header.jsp listing user's email and
> a logout link.
>
> Generating logout link with
>         String logoutURL =
> authenticator.createLogoutURL(request.getRequestURI());
> I gethttp://myapp.appspot.com/_ah/openid_logout?continue=http://myapp.apps...
>
> Which logs out the user correctly.
>
> What is unusual is the fact that I've deployed a servlet to allow user
> to log out from google accounts also, mapped to
> _ah/openid_logout which should prompt the user with Google accounts
> logout link, so they can log out from Google.
>
> This servlet seems to be completely bypassed using logout link: no
> requests to openid_logout show in application logs, nothing is shown
> from servlet, user gets immediate redirect to the app (and is prompted
> to authorize the app again if authorization was not saved).
> Firebug shows correct GET to logout url anyway...
>
> If you manually change the value of "continue" parameter, say 
> tohttp://www.google.com, my logout servlet works perfectly, showing
> Google's logout link, and request shows in log.
>
> Any advice about this behavior in redirection? this does not seem to
> be covered inhttp://code.google.com/appengine/docs/java/users/overview.html
>
> Thanks a lot
> Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: OpenID logout link redirect

2010-05-28 Thread l.denardo
I found by myself a useful workaround, which is not perfect (correct
redirection would be better) but works.
Simply construct the logout link to redirect to _ah/openid_logout
again (I think this should work also redirecting to a custom URL
hosting the logout page).

String requestBase = 
String logoutURL =
UserServiceFactory.getUserService().createLogoutURL(requestBase + "/
_ah/openid_logout?continue="+request.getRequestURI());

This handles automatic redirect correctly.

On May 28, 9:22 am, "l.denardo"  wrote:
> Even worse, if the user does save the authorization for the app, when
> logged out gets redirected immediately to the app page, and being
> still logged in to Google gets to the page again, making the logout
> link seem just broken, when in fact user is logged out and then logged
> in again authomatically.
>
> Is there any workaround for this?
>
> Thank you
> Lorenzo
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: OpenId "reference" implementation

2010-05-31 Thread l.denardo
I found the same error in Java: it's due to the way that login URL is
generated, which is different for pages with "required login" and
pages out of this constraint.
If a page is under security constraint login always redirects to _ah/
login_required, even if that is the uri you're requesting. Otherwise
login link is correct.

You should be able to get around it by simply removing _ah/
login_required from the list of urls for which you state a security
constraint (in Java, this means removing _ah/login_required from the
url-pattern list in the web-resource-collection of web.xml.

By the way there's a similar issue with logout, I posted something on
this group.

I hope this helps

Lorenzo

On May 30, 12:10 pm, Scott Ellis  wrote:
> Thanks wesley. I'm sure you're on to it, but Google Apps accounts and
> Marketplace integration examples would be more than useful.
>
> On 29 May 2010 12:18, Wesley C (Google)
> 
>
> > wrote:
> > hey all,
>
> > just an FYI that our team is working on an OpenID article to
> > complement the online docs that have more explanations and example
> > code... stay tuned!
>
> > -- wesley
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > "Core Python Programming", Prentice Hall, (c)2007,2001
> > "Python Fundamentals", Prentice Hall, (c)2009
> >    http://corepython.com
>
> > wesley.j.chun :: wesc+api-at-google-dot-com
> > developer relations :: google app engine
> > @app_engine :: googleappengine.blogspot.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: OpenId "reference" implementation

2010-05-31 Thread l.denardo
That's what I was meaning...still my low-level English doesn't help to
explain :-)

What I did was to deploy a servlet in _ah/login_required, which
generated login URL (assuming Google as an openID provider) and
redirected to it using standard servlet redirection.

I had /* pattern in security-constraint resource list to require login
for all pages in my application, and so caugth also /_ah/ under
security constraint: that led to the UserService generate login
methods to return _ah/login_required as a login url, and so I got
stuck in a redirection loop. My servlet was in fact redirecting to its
own address.

Removing _ah/login_required from the pages under security constraint
(that is, using explicit paths for the pages I had in my app instead
of /*) resolved it. UserService generates the correct login url when
called from the servlet.

I hope this is clearer

Regards
Lorenzo

On May 31, 12:01 pm, Scott Ellis  wrote:
> Ah sorry I get it - the /_ah/login_required pattern is caught by the '/'
> handler...gotcha. Hard to make a 'nice' default behaviour for that one then
> I guess. Cheers.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Mail API saves mail in users folders even if mail is sent by GAE

2010-06-11 Thread l.denardo
Hello,
I have an application deployed in GAE (Java) using Mail API.
The app is restricted in access to users from my Google Apps domain.
To receive feedback from users, I send from client (GWT + gwt
dispatch) an action containing a subject and message.
On server side I prepare an email message, set the logged in user as
the sender and send the message to a mail group.

The point is that users can find that email in their "sent mail"
folder in Google Mail, even if they didn't actively send the message
by themselves.

I would like to know if this is an attended behaviour, and if it can
be turned off in some way: I think it's a bit confusing for users to
find mails they did not send in their own folders.

Java mail documentation in http://code.google.com/appengine/docs/java/mail/
did not help.

Thanks for clarification
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: SLA Chain from "Google" to "App Developer" to "End User"

2010-06-14 Thread l.denardo
Hello,
Google announced a "business" version of AppEngine some time ago

http://code.google.com/appengine/business/

It's got an SLA which is published in draft at
http://code.google.com/appengine/business/sla.html

Prices for public apps are still not listed (and I guess it would take
quite a long time to get them published). I don't know if regular
AppEngine will benefit from a similar SLA, but in the Business FAQ
they state developers can "get these features by migrating your app to
Google App Engine for Business", so I guess no SLA will be published
for regular GAE.

I hope terms stated in the SLA draft can help you figure out what you
can offer to customers. As a developer I'd better leave SLAs and
customer refunds questions to lawyers, since they can be more accurate
in evaluating their implications (sad but true) :-(.

Regards
Lorenzo

On Jun 14, 1:23 pm, rvjcallanan  wrote:
> Hi All,
>
> This is a roadmap question hoping for a response from a member of the
> Google App Engine Team.
>
> When GAE finally moves out of Beta (is January 2011 too optimistic?),
> there is a general expectation that developers will be able to run
> mission-critical web apps with best-of-breed scaling, redundancy and
> downtime. Please correct me if I'm wrong in this assumption (and if I
> am wrong then that raises other obvious questions).
>
> When that nirvana moment arrives, I expect that Google will have fine-
> tuned its SLA to reflect its confidence in the robustness of its GAE
> platform and associated infrastructure.
>
> But what about GAE developers whose apps provide "critical" services
> to end-users - a CRM application would be a good example. In this
> case, the developer would be expected to provide an SLA to his
> customers. Obviously the two main technical considerations in framing
> this SLA will be the quality of the App Software (the developer's
> responsibility) and the reliability of the platform/infra-structure
> (Google's responsibility).
>
> Looking purely at the platform/infra-structure side of things, a
> conservative end-user SLA might water down Google uptime guarantees
> just to give a little wriggle room. But the guarantees are not the
> real issue here. The difficulty lies in what recourse the end-user has
> to an SLA violation. If Google fails to meet it's uptime guarantees,
> e.g. due to a major outage taking a couple of days to stabilise, then
> what recourse can the developer realistically expect from Goggle if he
> has 10,000 angry business customers?
>
> Of course this question is pertinent to all "hosting" companies. The
> critical difference here is the level of control which the developer
> has in a GAE scenario compared to, say, a dedicated server cluster.
> For example, in a dedicated server scenario, you could have a worst-
> case disaster-recovery plan in place to get your web app back on-line
> within say 8 hours. But with GAE, that level of control is completely
> relinquished to Google. And it is worsened by the fact that your app
> is mixed up with zillions of other apps in the GAE soup.
>
> I'm not expecting miracle answers here. I'm thinking more in terms of
> how GAE developers can approach end-user SLAs, bearing in mind that a
> watered-down SLA could be a deal breaker for end-users. I'm wondering
> also if Google is thinking of offering enhanced GAE services for
> developers of critical apps, offering an extra level of redundancy
> using a special "backup" cloud on independent infra-structure.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] OpenID does not redirect to _ah/login_required for admin pages

2010-06-15 Thread l.denardo
Hello,
I'm currently facing an unattended behavior when using openID to
authenticate for an admin page.

My app uses openID to authenticate users: requests are correctly
redirected to _ah/login_required for requests on regular app address,
and I use a servlet to show a custom login page.

If I try to access an admin page (i.e. a page under security
constraint with  admin ), I'm not redirected to
my login page but I get an authomatic redirect to Google Accounts
login page.

This prevents me from accessing my admin pages both with a direct link
and from App Engine admin console, since my administrator account is a
Google Apps account and I have no choice to login with that if my
login servlet is bypassed. Accessing pages with a direct link when I'm
already logged in works, but App Engine console still redirects to
Google Accounts.

Searching documentation did not give pointers, neither did searching
issues and this group for "openid admin".
Thanks for clarification

Regards
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: OpenID does not redirect to _ah/login_required for admin pages

2010-06-15 Thread l.denardo
I found out more about this behavior.
This is not due to admin page restriction but to malformed URLs i
passed to the request.

The url is in form

http://myapp.appspot.com/Admin.jsp&from=google&domain=mydomain.it

In this case the user gets redirected to Google Accounts login page
instead of

http://myapp.appspot.com/_ah/login_required?continue=http://myapp.appspot.com/Admin.jsp&from=google&domain=mydomain.it

[which is the URL you usually get redirected to if you require login
for a page:
http://myapp.appspot.com/Home.jsp redirects to
http://myapp.appspot.com/_ah/login_required?continue=http://myapp.appspot.com/Home.jsp]

Sorry for bad information about the issue

Lorenzo

On Jun 15, 11:26 am, Scott Ellis  wrote:
> I think if you log out of your apps account, it should allow you to login
> again with whatever account you want.
>
> On 15 June 2010 19:15, l.denardo  wrote:
>
> > Hello,
> > I'm currently facing an unattended behavior when using openID to
> > authenticate for an admin page.
>
> > My app uses openID to authenticate users: requests are correctly
> > redirected to _ah/login_required for requests on regular app address,
> > and I use a servlet to show a custom login page.
>
> > If I try to access an admin page (i.e. a page under security
> > constraint with  admin ), I'm not redirected to
> > my login page but I get an authomatic redirect to Google Accounts
> > login page.
>
> > This prevents me from accessing my admin pages both with a direct link
> > and from App Engine admin console, since my administrator account is a
> > Google Apps account and I have no choice to login with that if my
> > login servlet is bypassed. Accessing pages with a direct link when I'm
> > already logged in works, but App Engine console still redirects to
> > Google Accounts.
>
> > Searching documentation did not give pointers, neither did searching
> > issues and this group for "openid admin".
> > Thanks for clarification
>
> > Regards
> > Lorenzo
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] High 500 errors rate

2010-06-17 Thread l.denardo
I'm currently facing (15m or so) 500 errors both in Administration
Console and all of my applications.

No announcements on downtime notify, system status shows 100% uptime
and no issue on Java (but anomalies in datastore and task queues).

Regards
Lorenzo

by the way also got errors from other Google Services (e.g. a Java
stack trace from google docs).

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: High 500 errors rate

2010-06-17 Thread l.denardo
Seems up again, even if apps have high response time.

On Jun 17, 12:46 pm, vivpuri  wrote:
> Same for my app

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: High 500 errors rate

2010-06-18 Thread l.denardo
Thanks for your fast response.

I hope we will get more details in the future about these outages (I
guess this time it was big issue, since Google Docs reported a
BigTableOverQuotaException).
Maybe some more details added to downtime notifies will help
developers plan their use of App Engin and appreciate the work
AppEngine team does to keep things going.

Regards
Lorenzo

On Jun 17, 5:38 pm, App Engine Team 
wrote:
> Yes, App Engine experienced a brief outage this morning.  For more
> information, please see this post on downtime 
> notify:http://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> Kenneth, we corrected the Status Site to properly indicate the service
> outage.
>
> On Jun 17, 8:30 am, Kenneth  wrote:
>
> > And yet we have Google claiming:
>
> > "Investigation Complete - Issue Resolved
> > We have determined that this spike did not affect the performance or
> > uptime of applications. If you feel we have incorrectly diagnosed this
> > issue please inform us by posting in our developer forum. "
>
> > I know this is a canned message but it really adds insult to injury
> > when people are actively complaining in the forum about seeing an
> > issue and google does the "hear no evil see no evil" routine.
>
> > On Jun 17, 12:14 pm, Ulrich  wrote:
>
> > > Had similar problems, too. Very high response time for all request and
> > > datastore writes failed. The dashboard shows a lot of errors, but I
> > > can't see any error in the logs. Now it is working again.
> > > When I signed up for App Engine, I thought it would be rock-solid,
> > > because it is powered by Google. Most of the time it is just working
> > > great, but these (datastore) problems have to be solved.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Appengine 1.3.4 userService.createLoginURL for google openid causing firefox warning

2010-06-18 Thread l.denardo
I did try this since I got the same warning (by the way I think it's a
Firefox issue, since I had disabled that kind of warnings in my
settings).

The result was an HTTPS error, stating parameters were too long to
process (I think it was due to the very long URLs generated by
redirections).
Sorry for the lack of more details about the error, I just returned to
HTTP and kept Firefox warning, I can try to test HTTPS again if it can
help you detect an issue.

Regards
Lorenzo

On Jun 17, 7:20 pm, "Ikai L (Google)"  wrote:
> Can you try supplying an HTTPS url as the continue URL? This error is likely
> occurring because you are forwarding from an HTTPS page to an HTTP page.
>
>
>
> On Wed, Jun 16, 2010 at 11:01 PM, Isdal  wrote:
> > I considering switching my appengine app from the "old" google auth to
> > federated login using openid.
>
> > I am using the new userservice api introduced in 1.3.4. I have a test
> > app running athttp://listshuffle.appspot.com/(sorry for the terrible
> > ui... and complete lack of functionality, it does show the problem
> > though...).
>
> > The problem I have is that in FireFox (tested on 3.6.3 on both OS X
> > and windows) there is an ugly warning displayed just before the
> > redirect back to my page from google, (after the user allows my app).
> > This only happens in Firefox and only for google openid: yahoo and aol
> > does not have the problem. In Safari and Chrome there is no warning.
>
> > The Firefox warning message says:
> > =
> > Security Warning:
> > Although this page is encrypted, the information you have entered is
> > to be sent over an unencrypted connection and could easily be read by
> > a third party.
>
> > Are you sure you want to continue sending this information?
> > =
>
> > I am using:https://www.google.com/accounts/o8/idas my provider,
> > setting it to null orhttp://www.google.com/accounts/o8/id(no https)
> > does not help.
>
> > Any ideas?
> > Thanks!
> > // Tomas
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: What is a pattern for keeping track of current users in google app engine?

2010-06-23 Thread l.denardo
I'm just giving a not-well-thought suggestion, but I'd rather use
memcache for this.

I guess something like using a time-dependent code as the key (i.e. a
counter which increments every 30 seconds) and a list of user ids as
the value, and simply doing a get() on the cache for the current
counter value would work.

I don't know how this could scale, due to concurrent updates, but I
definitely think Memcache is the way to go, not datastore.

Regards
Lorenzo

On Jun 23, 5:45 am, Ryan  wrote:
> Each of my users is polling the server every few seconds. I need to
> keep a list of the users that have polled in the last 30 seconds handy
> for a task I have queued to run every few seconds.
>
> The obvious way I see to do it is to update a datastore entry every
> time the user polls, and query the entries that have a timestamp
> within the last N seconds within my task queue. I can't imagine this
> scaling well.
>
> Any recommendations?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Redirect http to https?

2010-06-25 Thread l.denardo
The same in Java configuring web.xml as stated here:

http://code.google.com/appengine/docs/java/config/webxml.html#Secure_URLs

(on appspot.com only, not for custom apps domains)

Regards
Lorenzo

On Jun 25, 4:44 am, Robert Kluin  wrote:
> If you are using python you can configure app.yaml to automatically redirect 
> to https. Just add "secure: always" to you handler mappings.
>
> http://code.google.com/appengine/docs/python/config/appconfig.html
>
> Robert
>
> On Jun 24, 2010, at 16:09, Phil McDonnell  wrote:
>
> > Is there any way to redirect http traffic to https on app engine?  For 
> > instance, I want users who type inhttp://x.appspot.cominto the browser to 
> > automatically get redirected tohttps://x.appspot.com.  Any idea if this is 
> > possible in GAE?
>
> > Thanks,
> > Phil
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Starting Dev App Server in process

2010-06-25 Thread l.denardo
Hello,
I think you could look at the suite for local testing introduced here:

http://code.google.com/appengine/docs/java/tools/localunittesting.html

You can ad entities and use the services as you would in the dev
server.
It's a bit long to configure but has given good results to me.

regards
Lorenzo

On Jun 24, 10:39 pm, Nige  wrote:
> Hi,
>
> I'm writing an integration test.  I'd like to start the dev app server
> in the same process as my test.  What's the best way to do that?
>
> I've tried this:
> KickStart.main(new String[]
> {"com.google.appengine.tools.development.DevAppServerMain", "--port="
> + PORT, "--address=" + HOST, "war" });
> but it seems to start the dev app server in another process.
>
> Thanks,
> Nige

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Redirect http to https?

2010-06-28 Thread l.denardo
Sorry but I can't really help, since it looks like your web.xml has
everything correct.

The only suggestions I can  give are:
-Try using /* instead of * in your constraint. This might seem a
stupid suggestion, but I faced similar problems many times (escape
characters in URLs seem particularly prone to errors).
-Be aware that https is only available on appspot.com subdomains, and
does not work if you deploy your app to your own site.

Regards
Lorenzo

On Jun 26, 12:31 am, Phil  wrote:
> This is a great pointer!  However, I'm having a little trouble getting
> this to actually work and I'm confused as to why nothing seems to
> redirect.  I would think the following would just redirect everything
> on my site through https.  Any idea why that doesn't work or a way to
> instrument what is going on?  I'm on the latest appengine & gwt
> versions.
>
> Section I added to web.xml:
>
>   
>   
>         
>                 *
>         
>                 
>                 CONFIDENTIAL
>         
>   
>
> On Jun 25, 1:13 am, "l.denardo"  wrote:
>
> > The same in Java configuring web.xml as stated here:
>
> >http://code.google.com/appengine/docs/java/config/webxml.html#Secure_...
>
> > (on appspot.com only, not for custom apps domains)
>
> > Regards
> > Lorenzo
>
> > On Jun 25, 4:44 am, Robert Kluin  wrote:
>
> > > If you are using python you can configure app.yaml to automatically 
> > > redirect to https. Just add "secure: always" to you handler mappings.
>
> > >http://code.google.com/appengine/docs/python/config/appconfig.html
>
> > > Robert
>
> > > On Jun 24, 2010, at 16:09, Phil McDonnell  
> > > wrote:
>
> > > > Is there any way to redirect http traffic to https on app engine?  For 
> > > > instance, I want users who type inhttp://x.appspot.comintothebrowser to 
> > > > automatically get redirected tohttps://x.appspot.com.  Any idea if this 
> > > > is possible in GAE?
>
> > > > Thanks,
> > > > Phil
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google App Engine" group.
> > > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-appengine+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Need help in building index

2010-06-30 Thread l.denardo

> Can someone also please tell me whether or not the index.yaml file
> plays a role in running the app on localhost or not. I cannot
> comprehend why the app (even the feature that needed that particular
> index) was working fine on localhost if the index.yaml was malformed
> and the same app breaks down for the want of an index it fails to
> update.
>

I don't know much about the Python environment, but I can confirm that
in Java this is an issue too.
The development server seems to return full sets of results for
queries that won't work in production without an explicit index
construction.

This happened to me while filtering for equality on multiple
properties (i.e. "where prop1==param1 && prop2 == param2").
The development server returned the full set of queried objects,
production server returned an empty set since no index was built.
Also, no index was authomatically generated in development (I don't
know if this feature is available in python, too).
The need for the index (and the lack of auto-generated ones) is stated
somewhere in documentation (not clearly recognizable, I should say);
discrepancy between production and the devserver is not.

Regards
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How to "reply" to an email received by a GAE app?

2010-06-30 Thread l.denardo
Can you clarify what you're doing?

The following thing works correctly, anyway:

-Send the email using the Mail API setting
* The user's address as the sender
* The intended address (e.g. "admins") as the receiver

When you receive the email at the destination address (e.g. your
address if you're an admin) you can reply to it as if it were sent by
the user from their favorite mail agent.
I use the method above (actually, the email is sent to a public Google
group of which I'm part) and my replies are correctly handled in the
user's inbox (all Google Mail). Threading is handled by user's agent.
Gmail works fine for sure, but it's not something you can control.

Regards
Lorenzo

On Jun 30, 4:00 pm, Kyle Jensen  wrote:
> The docs are clear on receiving and sending email.  Now I'd like to
> "reply" to an email from a user and have it appear correctly threaded
> in their inbox.  How can I achieve this?
>
> Thanks so much, Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How to "reply" to an email received by a GAE app?

2010-07-01 Thread l.denardo
Hello,
I never tried it but I think you can use the mail API to send an email
from the same servlet you use to receive the messages.
I think the best thing to do is create an account to use for these
replies and set it as an admin for your application, something like
"noreply.my...@gmail.com"
*Parse the incoming message to detect the sender
*Set the account you created as the sender of the reply (it must be
one of the admins of the app: you could use your own address, but I
think it's better to create one)
*Send the mail via the API

Hope this helps
Regards
Lorenzo

On Jun 30, 9:58 pm, Kyle Jensen  wrote:
> Sorry, what I wrote is not clear.
>
> My application is receiving emails from users.  I'd like to reply to
> those in an automated fashion.  E.g. "Thanks, we received your
> email..."  etc.  It's not clear to me how to reply to a message that
> my GAE app receives.
>
> Thanks.  Kyle
>
> On Jun 30, 10:53 am, "l.denardo"  wrote:
>
> > Can you clarify what you're doing?
>
> > The following thing works correctly, anyway:
>
> > -Send the email using the Mail API setting
> > * The user's address as the sender
> > * The intended address (e.g. "admins") as the receiver
>
> > When you receive the email at the destination address (e.g. your
> > address if you're an admin) you can reply to it as if it were sent by
> > the user from their favorite mail agent.
> > I use the method above (actually, the email is sent to a public Google
> > group of which I'm part) and my replies are correctly handled in the
> > user's inbox (all Google Mail). Threading is handled by user's agent.
> > Gmail works fine for sure, but it's not something you can control.
>
> > Regards
> > Lorenzo
>
> > On Jun 30, 4:00 pm, Kyle Jensen  wrote:
>
> > > The docs are clear on receiving and sending email.  Now I'd like to
> > > "reply" to an email from a user and have it appear correctly threaded
> > > in their inbox.  How can I achieve this?
>
> > > Thanks so much, Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Trouble Setting App Engine ID

2010-07-05 Thread l.denardo
I think there's no way to do it.
Gmail names seem to be locked for anyone, including the owner of the
account. This happened to me too, and seems to be a frequent request
from many of us.

Regards
Lorenzo

On Jul 2, 9:03 pm, cwaldbieser  wrote:
> I read that if you have a GMail account, no one else can take that
> name for an App Engine ID.
> I created a GMail account with the name I wanted, but when I tried to
> create an app with that account, I was told by the page the name is
> taken!  It was not taken prior to me creating the new GMail account.
> Am I blocking the name of the app ID I want?  How do I correct this?
>
> Thanks,
> Carl

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: App Engine Learning Resources

2010-07-05 Thread l.denardo
I agree the guide is well written and quite complete.
Many books on App Engine seem to be a replication of the guide with
different coding examples and a bit of added confusion :-)

I would also suggest conferences from Google IO at

http://code.google.com/events/io/2010/
http://code.google.com/events/io/2009/

And more App Engine developer blogs

Max Ross: http://gae-java-persistence.blogspot.com/
Ikai Lan: http://ikaisays.com/

Regards
Lorenzo

On Jul 3, 9:13 am, Robert Kluin  wrote:
> If you have not already, check out Nick Johnson's 
> blog,http://blog.notdot.net/.  He has a lot of very useful posts.
>
> I would also suggest searching these groups.  There is a ton of
> information here.
>
> Personally, I find Google's reference manual extremely useful.  It is
> not perfect, but with a little digging and reading it is pretty good.
>
> Robert
>
> On Fri, Jul 2, 2010 at 12:32 PM, Mzor  wrote:
> > Hey everyone. I've been working on a Flash project recently and
> > previously I was using PHP as the backend for it, but recently it has
> > started to make sense to switch over to using app engine just due to
> > the nature of the project.
>
> > The issue is, I'm finding resources for app engine to be few and far
> > between, and the tutorials really aren't that well written, being
> > completely honest, so I've bee fumbling around for a couple weeks and
> > have been making next to 0 headway.
>
> > What I'm looking for are just learning resources outside of the
> > tutorials up on the Google site - books, forums, classes, other
> > tutorials. Stuff like that that could be of use.
>
> > I'm much obliged, and thanks in advance for responses.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using Google Accounts AND Google Apps accounts for authentication

2010-07-05 Thread l.denardo
You should use the Users API using the OpenID option.

Then you can log in both accounts passing different parameters to the
createLoginURL method

https://www.google.com/accounts/o8/id  -- >for gmail
https://www.google.com/accounts/o8/site-xrds?hd=$DOMAIN   -->
substituting your domain name to $DOMAIN

A good guide is at 
http://super-easy.blogspot.com/2010/05/using-openid-in-java-on-gae.html

Regards
Lorenzo

On Jul 3, 9:18 am, Robert Kluin  wrote:
> About the only way would be OAuth.
>
> There are several items in the issue tracker related to this topic.
> And it comes up on the forum from time-to-time as well.
>
> Robert
>
> On Thu, Jul 1, 2010 at 6:52 PM, Uros Trebec  wrote:
> > Hello everyone!
>
> > I apologize in advanced if this topic was already covered, I couldn't
> > hunt it down.
>
> > So, to the point:
> > I'm developing a public application that requires users to log in at
> > some point. Currently my application's Settings are set to use "Google
> > Accounts API" for authentication. This has a less desirable effect of
> > not being able to use my Google Apps account (not the same domain as
> > the application) to authenticate as a user.
>
> > I wonder if there is _any_ way to enable both "users" to authenticate?
> > Maybe using OAuth authentication option?
>
> > Thanks for reading and I hope someone can help.
>
> > Best regards,
> > Uros Trebec
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using Google Accounts AND Google Apps accounts for authentication

2010-07-06 Thread l.denardo
Thank you for the pointer: I think that would at least be good news
for developers, since App Engine seems to have trouble handling Google
Accounts created from an Apps address (there's much on the group about
this).

Regards
Lorenzo

On Jul 6, 12:27 am, Uros Trebec  wrote:
> Thanks for all suggestions! I'll try to make it work...
>
> On the same note, does anyone know anything about 
> this:http://smarterware.org/6394/google-apps-vs-google-accounts-resolution...
>
> Regards,
> Uros
>
> On Jul 5, 9:25 am, "l.denardo"  wrote:
>
> > You should use the Users API using the OpenID option.
>
> > Then you can log in both accounts passing different parameters to the
> > createLoginURL method
>
> >https://www.google.com/accounts/o8/id        -- >for 
> >gmailhttps://www.google.com/accounts/o8/site-xrds?hd=$DOMAIN -->
> > substituting your domain name to $DOMAIN
>
> > A good guide is 
> > athttp://super-easy.blogspot.com/2010/05/using-openid-in-java-on-gae.html
>
> > Regards
> > Lorenzo
>
> > On Jul 3, 9:18 am, Robert Kluin  wrote:
>
> > > About the only way would be OAuth.
>
> > > There are several items in the issue tracker related to this topic.
> > > And it comes up on the forum from time-to-time as well.
>
> > > Robert
>
> > > On Thu, Jul 1, 2010 at 6:52 PM,UrosTrebec  wrote:
> > > > Hello everyone!
>
> > > > I apologize in advanced if this topic was already covered, I couldn't
> > > > hunt it down.
>
> > > > So, to the point:
> > > > I'm developing a public application that requires users to log in at
> > > > some point. Currently my application's Settings are set to use "Google
> > > > Accounts API" for authentication. This has a less desirable effect of
> > > > not being able to use my Google Apps account (not the same domain as
> > > > the application) to authenticate as a user.
>
> > > > I wonder if there is _any_ way to enable both "users" to authenticate?
> > > > Maybe using OAuth authentication option?
>
> > > > Thanks for reading and I hope someone can help.
>
> > > > Best regards,
> > > >UrosTrebec
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Google App Engine" group.
> > > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-appengine+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Is _ah/openid_logout going to be a stable logout URL

2010-07-12 Thread l.denardo
Hello,
I'm currently using openID for users authentication.
What I've done until now is to generate a logout link on server side,
using the Users API.

Now I need to generate such URL on client side, to add a click
listener to it and automatically save user's work before sign out.
User service always  generates "_ah/openid_logout" as a logout URL, so
I wanted to know if this is intended to be a stable logout url and so
can be used safely to generate a logout link, or it's better to find
another workaround for this.

Thanks for your advice
Regards
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Is _ah/openid_logout going to be a stable logout URL

2010-07-13 Thread l.denardo
It was one of the other ways to do it, I just wanted to avoid more
code in my architecture just to do this (MVP has the disadvantage of
added boilerplate for simple tasks like this one).
Anyway I found a workaroud, passing the URL in an invisible div in my
page and then reading and populating another field in my page using
GWT RootPanel.get(id), using different ids for various parts of the
page.

Thanks for your advice.

Regards
Lorenzo

On Jul 12, 5:20 pm, gops  wrote:
> as this is undocumented behaviour , you should not use it. ( i don't
> think they will change this but still )
>
> we not just fetch logout url via ajax and create link.
>
> On Jul 12, 6:53 pm, "l.denardo"  wrote:
>
> > Hello,
> > I'm currently using openID for users authentication.
> > What I've done until now is to generate a logout link on server side,
> > using the Users API.
>
> > Now I need to generate such URL on client side, to add a click
> > listener to it and automatically save user's work before sign out.
> > User service always  generates "_ah/openid_logout" as a logout URL, so
> > I wanted to know if this is intended to be a stable logout url and so
> > can be used safely to generate a logout link, or it's better to find
> > another workaround for this.
>
> > Thanks for your advice
> > Regards
> > Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How logging [doesnt?] work?

2010-07-19 Thread l.denardo
The listed behavior seems to work in production only.
I haven't been able to write output on standard streams in development
too.

Anyway you can simply log the required output with the appropriate log
level, and it will be prompted to your console if logging properties
are correctly set.

Regards
Lorenzo

On Jul 18, 2:03 am, kab  wrote:
> In the doc: Java Servlet Environment > Logging, this statement
> appears:
>
> Everything the servlet writes to the standard output stream
> (System.out) and standard error stream (System.err) is captured by App
> Engine and recorded in the application logs. Lines written to the
> standard output stream are logged at the "INFO" level, and lines
> written to the standard error stream are logged at the "WARNING"
> level.
>
> This isn't happening for me: none of my app's (development) System.out
> messages appear, even when I set the Console Main > Logs severity to
> Debug.  Note that I have a logging.properties file in WEB-INF whose
> content is
>
> .level = INFO
>
> and my appengine-web.xml contains
>
> 
>         
> 
>
> What am I missing here?
> Thanks in advance,
> Ken Bowen

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Can we run PHP and Ruby on AppEngine

2010-07-26 Thread l.denardo
It's possible if these are supported. The page "will it play in app
engine" gives a compatibility list for them.

http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

Regards
Lorenzo

On Jul 25, 5:10 am, Aircule  wrote:
> Through JVM implementations such as Quercus and JRuby?
> I mean, are we allowed to do that?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Authentication across MULTIPLE apps

2010-07-27 Thread l.denardo
Look into OpenID api.
It allows you to authenticate users using the same credential, and if
the user is signed in you can implement a good single sign on.

User data will anyway be handled separately by each application, since
datastore cannot be shared.

Links:

http://code.google.com/appengine/docs/java/users/overview.html
http://super-easy.blogspot.com/2010/05/using-openid-in-java-on-gae.html
(good example).

Regards
Lorenzo

On Jul 27, 1:36 am, Matt Hill  wrote:
> Hi everyone!
>
> If I had my blog, forums and etc. as separate apps on sub-domains on
> the same domain, how would I go about having a user sign in ONCE for
> all of them?
>
> Hopefully it's possible somehow. Any help is appreciated, thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Same CNAME domain in multiple accounts

2010-07-30 Thread l.denardo
The account used for domain management has nothing to do with the ones
used for deploying.

You can have a team working on dev.appspot.com, mapped to your dev
subdomain, another one completely different working to production,
e.g. on prod.appspot.com mapped to your production subdomain, and let
your company domain administrator (who does not have to be in neither
of the two teams) map your cname records.

Differently stated, use one account for DNS management, and only for
that, and let the two teams work on completely separate apps on
appspot.

Regards
Lorenzo

On Jul 30, 2:21 am, Dre  wrote:
> Yes, this would work for deployment in a small group, but this doesn't
> work so well for Enterprise deployments where multiple teams are
> involved. In our deployment workflow we have separate teams taking
> care of dev. vs. production applications.
>
> In order to push an app to production our Production team takes the
> application from the Development environment (once tested, QAed, etc.)
> and then pushes it out to production. They want to make sure that no
> one, except those that are supposed to, can touch production
> deployments.
>
> In the scenario of having two apps under the same account, there is
> still the possibility that out of say 10 developers working on the
> application, one could mistakenly (or potentially on purpose) work
> with the wrong application. Maybe there are more knobs and switches
> there for access control which I haven't explored?
>
> Also, we would like to separate costs between what our production
> environment is using and what our development environment is using.
> I'm not very clear if this information is readily available. Since
> we're still in our free quota I'm not clear on how this is can be
> accomplished either and separate accounts would also help...
>
> Dre
>
> On Jul 29, 4:20 pm, Roberto Saccon  wrote:
>
> > maybe I am missing your point, but you can publish your app with two
> > different applications, stable versions two one app-ID, unstable ones
> > with another app-ID. Then you map the stable app towww.example.com
> > and the unstable one to dev.example.com
>
> > --
> > Roberto
>
> > On Jul 28, 7:00 pm, Dre  wrote:
>
> > > Hi,
>
> > > I would like to separate out our dev and production accounts for App
> > > Engine so that developers can safely use the dev account without
> > > affecting production. For each account I would like to have well known
> > > names for the applications under the same domain. For instance:
>
> > > dev account -> dev.example.com
> > > production account ->www.example.com
>
> > > To create these CNAMEs I need to register the domain under the same
> > > account in Google Apps. However, I can't seem to register the same
> > > domain under two different accounts so I cannot set this scenario up.
>
> > > Is there any way to get around the requirement of using Google Apps to
> > > register the domain? Not sure why I need to prove I own the domain if
> > > I have the power to setup the CNAMEs with my DNS provider anyway.
>
> > > Maybe there is another accepted workflow on how to separate dev. and
> > > production environments?
>
> > > Thanks,
>
> > > Dre

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Same CNAME domain in multiple accounts

2010-07-30 Thread l.denardo
You're basically right.

The point you're possibly missing is that *all* apps must at first be
deployed under the appspot.com domain.
So for example dev.appsppot.com and prod.appspot.com will be the two
apps. There's no way to directly upload them under your company domain
directly.

Then you can redirect subdomains of your main domain to the apps, e.g.
devstuff.example.com and myproduct.example.com will give access to
your app *in addition to appspot*.
To perform the redirect you need to manage example.com under Google
Apps, and set up DNS and some more settings using a domain
administrator account.
Domain  administrator (domainow...@example.com) does not have to be a
developer for the apps at all. He may not have access to App Engine,
in fact.
Neither developm...@example.com nor product...@example.com need to be
domain administrators.
They will simply ask domainow...@example.com to set up redirects when
the application is ready to serve publicly.
If you try to setup the redirect from App Engine console using
development or production accounts, you'll get to a point where you'll
be prompted that they're not domain admins, and asked to login with a
domain admin account to set it up. Instructions will be provided so
that domainow...@example.com can set up the redirect without ever
logging to AppEngine.

This is the way we procede at ur company. No one in our AppEngine
development team has access to domain administration, and domain
admins do not have App Engine enabled at all.
Obviously, each app in AppEngine is visible only by developers
involved in it.

Hope this helps
Regards

Lorenzo


On Jul 30, 6:47 pm, Dre  wrote:
> Thanks for the reply. It's really not obvious to me with the current
> docs how to do this but I'll dig more into it. I don't want to
> actually take ownership of the domain under an account until I
> understand how it works since we need this to be the 'official' domain
> account.
>
> If I understood correctly I can have an account
> domainow...@example.com own the domain, then have a d...@example.com
> own some apps, and have a product...@example.com own some other apps,
> and somehow both of these can use example.com as their domain?
>
> Thanks,
>
> Dre
>
> On Jul 30, 12:49 am, "l.denardo"  wrote:
>
> > The account used for domain management has nothing to do with the ones
> > used for deploying.
>
> > You can have a team working on dev.appspot.com, mapped to your dev
> > subdomain, another one completely different working to production,
> > e.g. on prod.appspot.com mapped to your production subdomain, and let
> > your company domain administrator (who does not have to be in neither
> > of the two teams) map your cname records.
>
> > Differently stated, use one account for DNS management, and only for
> > that, and let the two teams work on completely separate apps on
> > appspot.
>
> > Regards
> > Lorenzo
>
> > On Jul 30, 2:21 am, Dre  wrote:
>
> > > Yes, this would work for deployment in a small group, but this doesn't
> > > work so well for Enterprise deployments where multiple teams are
> > > involved. In our deployment workflow we have separate teams taking
> > > care of dev. vs. production applications.
>
> > > In order to push an app to production our Production team takes the
> > > application from the Development environment (once tested, QAed, etc.)
> > > and then pushes it out to production. They want to make sure that no
> > > one, except those that are supposed to, can touch production
> > > deployments.
>
> > > In the scenario of having two apps under the same account, there is
> > > still the possibility that out of say 10 developers working on the
> > > application, one could mistakenly (or potentially on purpose) work
> > > with the wrong application. Maybe there are more knobs and switches
> > > there for access control which I haven't explored?
>
> > > Also, we would like to separate costs between what our production
> > > environment is using and what our development environment is using.
> > > I'm not very clear if this information is readily available. Since
> > > we're still in our free quota I'm not clear on how this is can be
> > > accomplished either and separate accounts would also help...
>
> > > Dre
>
> > > On Jul 29, 4:20 pm, Roberto Saccon  wrote:
>
> > > > maybe I am missing your point, but you can publish your app with two
> > > > different applications, stable versions two one app-ID, unstable ones
> > > > with another app-ID. Then you map the stable app towww.example.com
> > &

[google-appengine] Re: Starting dev App server programatically (Java)

2010-08-02 Thread l.denardo
There are command lines for it.

See http://code.google.com/appengine/docs/java/tools/devserver.html

If you're using Eclipse, there's the Google Plugin which allows
starting and managing server from Eclipse.

If you need an emulation for JUnit testing, using only the services
you need on the fly, look into

http://code.google.com/appengine/docs/java/tools/localunittesting.html

Regards
Lorenzo

On Aug 1, 9:52 am, Grant  wrote:
> Hi
>
> I would appreciate it if someone could point me to some online docs or
> examples of starting the development environment programatically with
> Java.
>
> Trying to write a plugin that will do this, but I keep running into
> problems with it.
>
> Tried this from various angles including custom classloaders with
> little success.
>
> Thanks
>
> Grant

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Same CNAME domain in multiple accounts

2010-08-02 Thread l.denardo
Yes, you're right.

The point you're possibly missing is that *all* apps must be deployed
with an ID under the appspot.com domain.
So your apps will be, for example, dev.appspot.com and
prod.appspot.com.

There's no way to have them only in your domain without an access from
appspot to.

Then, you can redirect your domains development.example.com and
myproduct.example.com to point to the two different apps deployed on
appspot.
If example.com is managed under GoogleApps, then this gives you also
the possibility to restrict the use of your apps to your domain users
only.

To perform redirection, you must set some parameters from your Google
Apps domain dashboard and DNS settings. To do this you must log in
using an account which is administrator for the Google Apps domain, in
your example domainow...@example.com.

domainowner does not have to be an administrator for the App Engine
applications at all.
When you configure your App Engine application (e.g. using
product...@example.com), Google assumes you are the domain admin
during the procedure, to shorten things up, but provides a link to log
in with another account if production is not a domain administrator.

In our company we have a situation pretty much like the one you
describe.
As developers, we create and deploy applications with our own accounts
(developm...@example.com and product...@example.com), giving access to
each other according our own responsibilities.

When we need to give access to the app thru our main domain, we ask
domainow...@example.com to set up the redirect.
We don't manage domain settings at all, and domainowner does not even
know what apps are deployed until we don't ask him to put them on our
company domain.

Hope this helps
Regards
Lorenzo

On Jul 30, 6:47 pm, Dre  wrote:
> Thanks for the reply. It's really not obvious to me with the current
> docs how to do this but I'll dig more into it. I don't want to
> actually take ownership of the domain under an account until I
> understand how it works since we need this to be the 'official' domain
> account.
>
> If I understood correctly I can have an account
> domainow...@example.com own the domain, then have a d...@example.com
> own some apps, and have a product...@example.com own some other apps,
> and somehow both of these can use example.com as their domain?
>
> Thanks,
>
> Dre
>
> On Jul 30, 12:49 am, "l.denardo"  wrote:
>
> > The account used for domain management has nothing to do with the ones
> > used for deploying.
>
> > You can have a team working on dev.appspot.com, mapped to your dev
> > subdomain, another one completely different working to production,
> > e.g. on prod.appspot.com mapped to your production subdomain, and let
> > your company domain administrator (who does not have to be in neither
> > of the two teams) map your cname records.
>
> > Differently stated, use one account for DNS management, and only for
> > that, and let the two teams work on completely separate apps on
> > appspot.
>
> > Regards
> > Lorenzo
>
> > On Jul 30, 2:21 am, Dre  wrote:
>
> > > Yes, this would work for deployment in a small group, but this doesn't
> > > work so well for Enterprise deployments where multiple teams are
> > > involved. In our deployment workflow we have separate teams taking
> > > care of dev. vs. production applications.
>
> > > In order to push an app to production our Production team takes the
> > > application from the Development environment (once tested, QAed, etc.)
> > > and then pushes it out to production. They want to make sure that no
> > > one, except those that are supposed to, can touch production
> > > deployments.
>
> > > In the scenario of having two apps under the same account, there is
> > > still the possibility that out of say 10 developers working on the
> > > application, one could mistakenly (or potentially on purpose) work
> > > with the wrong application. Maybe there are more knobs and switches
> > > there for access control which I haven't explored?
>
> > > Also, we would like to separate costs between what our production
> > > environment is using and what our development environment is using.
> > > I'm not very clear if this information is readily available. Since
> > > we're still in our free quota I'm not clear on how this is can be
> > > accomplished either and separate accounts would also help...
>
> > > Dre
>
> > > On Jul 29, 4:20 pm, Roberto Saccon  wrote:
>
> > > > maybe I am missing your point, but you can publish your app with two
> > > > different applications, stable versions 

[google-appengine] Multitenancy and datastore performance

2010-08-30 Thread l.denardo
Hello everybody,
I'm currently investigating the new multitenancy features introduced
in GAE 1.3.6.

In my application the only suitable namespace would be the user's
email domain (Google Apps domain btw), making the choice of
multitenancy nearly useless (I currently have security checks to
separate user's access to datastore object).

Thus the only choice would regard application performance: does the
use of multitenancy impact on the performance of queries (JDO), or is
it equal to using a single namespace with respect to speed and quotes
consumption?

Thanks to all for your advice
Regards
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Multitenancy and datastore performance

2010-08-30 Thread l.denardo
Hello, thanks for advice...

Unfortunately, this is due to planned evolution in the application.

Currently, a user can retrieve just the objects he created, these are
simply retrieved by key (no filters involved). Security checks are
performed to see if the user can manage the object with the provided
key, AND to check user quotas (we limit the number of objects per
user).
No further filtering is involved, so we don't expect benefits from
multitenancy.
Besides that, docs suggest "An application that reads Keys, or other
namespace-aware objects, from untrusted sources (like the web browser
client) introduces security vulnerabilities. Applications that rely on
keys from untrusted sources must incorporate a security layer
verifying that the current user is authorized to access the requested
namespace. ", so I think our security checks will be needed even in
the multi tenant case.

Next step will be a read-only sharing between users in the same
domain. This makes using the domain name as the namespace a good
option, but wouldn't affect performance since authorization checks
must be performed (not all objects are shared).
Maybe we should review our model to use multitenancy separating
objects for each user and re-engineering the way sharing will be done.

The point in my question is: does multitenancy impact performance when
user ID (or anything which will be used as a namespace identifier) is
not explicitly used for filtering? Does the use of namespaces improve
performances, e.g., of getObjectByID?
The only thing I see by now is that it would reduce the size of the
*result sets* in case of queries on datastore, I would like to see how
this affects performances.

Thanks for your help
Lorenzo

On Aug 30, 2:30 pm, Rodrigo Moraes  wrote:
> On Aug 30, 7:55 am, "l.denardo" wrote:
>
> > In my application the only suitable namespace would be the user's
> > email domain (Google Apps domain btw), making the choice of
> > multitenancy nearly useless (I currently have security checks to
> > separate user's access to datastore object).
>
> Why useless? If each user only accesses his own data, using a
> namespace could make sense. It would make queries simpler, and one
> less filter should probably affect performance positively.
>
> -- rodrigo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Multitenancy and datastore performance

2010-08-30 Thread l.denardo
That was my guess too.
Thank you for collaboration.

Regards
Lorenzo

On Aug 30, 3:32 pm, Rodrigo Moraes  wrote:
> On Aug 30, 10:08 am, "l.denardo" wrote:
>
> > The point in my question is: does multitenancy impact performance when
> > user ID (or anything which will be used as a namespace identifier) is
> > not explicitly used for filtering? Does the use of namespaces improve
> > performances, e.g., of getObjectByID?
>
> AFAIK, all getObjectByID calls use namespaces. They are used to build
> the key. So there's no difference in performance, because you are
> using namespaces *anyway* (even if the default one).
>
> -- rodrigo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to use Fedrated Login for my google apps Engine

2010-09-06 Thread l.denardo
Can you please clarify the steps to get that kind of login working? I
can't find documentation about this.

I tried the following:

*Use an app with "Google accounts API" as authentication option,
accessed thru appspot.com.
Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
general Google login page, which refuses Google Apps accounts.
Omitting final slash, i.e. http://myapp.appspot.com/a/mydomain.com
gives a 404.

*Use an application with "Federated login" as an option for
authentication, both accessed thru appspot and as a subdomain of my
domain.
Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
general Google login page, which refuses Google Apps accounts, same as
before.

*Use an application "restricted to my Google Apps domain accounts".
Accessing http://myapp.appspot.com/a/mydomain.com/ gives a 404 (this
is correct, since there should be no way for users outside my domain
to log in.

I can provide working URLs if this is needed.

Thanks for your advice
Regards
Lorenzo

On Sep 3, 9:12 pm, "Ikai L (Google)"  wrote:
> This doesn't actually require using federated login: your users just have to
> go to:
>
> http://mytaskmanager.appspot.com/a/ubob.org
>
> Federated login usually refers to OpenID:
>
> http://code.google.com/appengine/articles/openid.html
>
>
>
> On Thu, Sep 2, 2010 at 9:08 PM, Ehsan-ul-haq  wrote:
> > hi
>
> > i have create my Google Apps on Google Apps Engine (http://
> > mytasksmanager.appspot.com).
>
> > now i want to create a login interface where user can login in with
> > google and google apps account
>
> > i done my Google Account login but i need help how to login with other
> > Google Apps Accounts like eh...@ubob.org
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Uploading 1100 files...

2010-09-06 Thread l.denardo
Hello,
these times are pretty usual for me (Italy) and seem to depend on the
number of files you need to compile and upload.

I just uploaded a test (nearly empty) app, no GWT, one servlet and one
page. That took about 30 seconds.

My business app has numbers like your. I work in Java.
The "cloning application files" usually gives 700-900 files cloned. Of
these, 100 to 300 get uploaded each time I deploy an update.

Usually, depending on my bandwidth, upload and precompilation can take
3 to 10 minutes. 3-5 more minutes usually go wasted in the "will check
again in XX seconds" loop.
So 9 to 15 minutes are usual times to deploy for me.

Precompilation is a time-consuming step, which is explained here:

http://code.google.com/events/io/2010/sessions/whats-hot-in-java-for-app-engine.html
(last part of the session).
For what I understood, your files are divided in 4 bulks, which are
then compiled and then uploaded to GAE in compiled form (this is also
a good explanation of why no source is downloadable...no source is
uploaded actually, for what I understand).

Hope the session video helps.

Regards
Lorenzo

On Sep 5, 9:16 am, Jaroslav Záruba  wrote:
> Uploading my GWT-application to GAE takes eons lately. For instance, it
> takes 9-10 minutes to upload 275 files.
> Are those times something I should get used to or is GAE only experiencing
> some issues?
>
> Judging by what Eclipse outputs when uploading only a few files (like when I
> only modify server-side stuff), it seems that each file takes separate
> request to get uploaded. Is that right?
>
> Regards
>  J. Záruba

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: App Engine for Busisness

2010-09-07 Thread l.denardo
I hope that new background servers will be designed with the option to
enable multithreading for processing.

The reason is simply that many libraries (especially for
computationally intensive tasks involving things like branch-and.bound
tree search) are implemented using threads, and obviously this makes
them unusable on GAE.
Patching these libraries is not an option - too long task to do to
simply use them.

So I hope multithreading will be an option for background processing.
As for the planned SQL support this could be a major usability
improvement, letting users choose between scalability and processing
power.

Anyway thank you Nick for your help.
Regards
Lorenzo

On Sep 6, 6:42 pm, Jeff Schwartz  wrote:
> Hi Nick. Yes, I intend to shard as much as possible and to create small,
> efficient tasks :)
>
> Thanks again.
>
> Jeff
>
> On Mon, Sep 6, 2010 at 12:07 PM, Nick Johnson (Google) <
>
>
>
> nick.john...@google.com> wrote:
> > Hi Jeff,
>
> > On Mon, Sep 6, 2010 at 5:00 PM, Jeff Schwartz 
> > wrote:
>
> >> Hi Nick. Thank you for your offer. I would like to develop a tasks that
> >> would benefit from the longer durations. Specifically, it involves sending
> >> out emails for all members participating within a social graph. Sort of 
> >> like
> >> the way members receive email notifications on Facebook when someone adds a
> >> comment to a post. As the number of members that have to be sent
> >> notifications is indeterminate I was concerned about the feasibility of
> >> supporting this on AppEngine but I am sure that 10 minutes would be more
> >> than enough time.
>
> > I'd highly recommend building your app such that it shards the email
> > sending into many tasks regardless. Longer deadlines will help, but your app
> > will be more scalable - and faster to send emails in bulk - if you can break
> > it down into smaller tasks.
>
> >> Let me do this, let me try it first without any increase enabled. I will
> >> take some metrics and try to forecast that out to hundreds or even 
> >> thousands
> >> of emails being sent. If I determine that I am going to run into problems
> >> running within the current limits I will email you a request to raise them
> >> for me. Would that be OK?
>
> > That's fine - feel free to contact me if you need an increase.
>
> > -Nick Johnson
>
> >> Jeff
>
> >> On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google) <
> >> nick.john...@google.com> wrote:
>
> >>> Hi Jeff,
>
> >>> I can enable 10 minute timeouts for offline requests (eg, task queue and
> >>> cron) and offline URLFetch calls right now, if you have an App ID that
> >>> requires it. Other features aren't currently on our timeline, so we can't
> >>> provide a concrete estimate of when we're likely to make them available.
>
> >>> -Nick Johnson
>
> >>> On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz 
> >>> wrote:
>
>  Hi Nick. I am very encourage by your responses to Ben, specifically
>  regarding increasing all these limits across the board and not just for
>  business customers. Can you say when Google will announce their 
>  intentions
>  regarding the specifics of these pending changes? It would be very
>  beneficial to know these prior to their availability so as to better 
>  factor
>  their benefits into our designs now.
>
>  Jeff
>
>  On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) <
>  nick.john...@google.com> wrote:
>
> > Hi Ben,
>
> > On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung  wrote:
>
> >> Hi, App Engine Team:
>
> >> Our RD developers, We are very interested in App Engine for Business.
>
> >> Because we are assessing to migrate our platform to GAE platform, so
> >> there are some questions for you, hope you can help us to answer them.
>
> >> 1) We know there are many 1MB limitation, like datastore for each
> >> entity, image resize, mail attachment, URL fetch, memcache value.
>
> >> Does "App Engine for Business" support to revoke these limitations by
> >> paying more costs?
>
> > We're working to increase all these limits, but when we do, it's likely
> > to be across the board, not just for Business customers.
>
> >> 2) Does "App Engine for Business" support many applications to access
> >> ONE datastore(DB)?
>
> > No. If you can explain why you need to do this, we can probably suggest
> > a better alternative, though.
>
> >> 3) Does "App Engine for Business" support request handler for more
> >> than 30 seconds?
>
> > This is another limitation we're working on. Please contact me off-list
> > if you're interested in learning more.
>
> >> 4) Does "App Engine for Business" support socket to use?
>
> > No, all outgoing requests must be via one of our APIs, such as
> > URLFetch.
>
> > -Nick Johnson
>
> >> Thanks in advance.
>
> >> BR,
>
> >> Ben
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Googl

[google-appengine] Re: GAE downtime email marked as spam by gmail

2010-09-15 Thread l.denardo
Happens randomly to me too.
Yesterday first announcement was "spam", subsequent update not. Emails
are marked as spam or phishing about 20% of times.

Regards
Lorenzo

On Sep 15, 11:46 am, "Raymond C."  wrote:
> same here
>
> On Sep 15, 3:41 pm, Kenneth  wrote:
>
> > Does anyone else get the downtime emails marked as spam pretty much
> > always? The first one yesterday got through fine but the second got
> > caught as a phishing email.
>
> >http://imgur.com/HMrRL.png

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: GAE downtime email marked as spam by gmail

2010-09-15 Thread l.denardo
BTW I checked, and looks like messages are marked as spam only if
coming by the address
appengine.notificati...@google.com

In my inbox at least...appengine.noreply seems to go to inbox
correctly.

On Sep 15, 4:38 pm, "l.denardo"  wrote:
> Happens randomly to me too.
> Yesterday first announcement was "spam", subsequent update not. Emails
> are marked as spam or phishing about 20% of times.
>
> Regards
> Lorenzo
>
> On Sep 15, 11:46 am, "Raymond C."  wrote:
>
> > same here
>
> > On Sep 15, 3:41 pm, Kenneth  wrote:
>
> > > Does anyone else get the downtime emails marked as spam pretty much
> > > always? The first one yesterday got through fine but the second got
> > > caught as a phishing email.
>
> > >http://imgur.com/HMrRL.png

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: GAE downtime email marked as spam by gmail

2010-09-16 Thread l.denardo
Today also appengine.noreply was marked as spam.
I can confirm the @google.com address was marked as spam too.

I simply set up a couple of filters to accept these addresses in my
inbox now. As long as we can assume these addresses are used for
notifications, it's a zero cost solution so I can be happy with it.

Regards
Lorenzo

On Sep 15, 11:16 pm, "Ikai Lan (Google)" 
wrote:
> This is strange - so appengine.notificati...@google.com are being marked as
> spam, but not appengine.nore...@gmail.com? Users have reported that
> appengine.nore...@gmail.com is usually the one that gets reported as spam.
> Can you confirm? We created the new @google.com address to circumvent this
> issue.
>
> On Wed, Sep 15, 2010 at 2:42 PM, l.denardo wrote:
>
> > BTW I checked, and looks like messages are marked as spam only if
> > coming by the address
> > appengine.notificati...@google.com
>
> > In my inbox at least...appengine.noreply seems to go to inbox
> > correctly.
>
> > On Sep 15, 4:38 pm, "l.denardo"  wrote:
> > > Happens randomly to me too.
> > > Yesterday first announcement was "spam", subsequent update not. Emails
> > > are marked as spam or phishing about 20% of times.
>
> > > Regards
> > > Lorenzo
>
> > > On Sep 15, 11:46 am, "Raymond C."  wrote:
>
> > > > same here
>
> > > > On Sep 15, 3:41 pm, Kenneth  wrote:
>
> > > > > Does anyone else get the downtime emails marked as spam pretty much
> > > > > always? The first one yesterday got through fine but the second got
> > > > > caught as a phishing email.
>
> > > > >http://imgur.com/HMrRL.png
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Cannot access Admin Interface on Localhost

2010-09-20 Thread l.denardo
Hello,
on local server you have a fake authentication which allows simulation
of admin login.
If you open your front end with your browser, you should see a login
box showing "t...@examle.com" as login name, with a "sign in as
administrator" checkbox.

You must sign in as admin if you want to see the pages you marked as
restricted in your web.xml.

No-login access is only for the local admin console (_ah/admin), but
for anything you explicitly restrict you must sign in as
administrator.

Regards
Lorenzo

On Sep 18, 2:29 am, sbaechler  wrote:
> Hi
>
> I just set up AppEngine with the YouTube Direct App. When I run it and
> try to access the admin interface on localhost I get a 403 FORBIDDEN
> error. In the tutorial the guy said that there was no user
> authentication on the local server.
> The front end seems to work. The template is displayed correctly.
>
> The Log-message on the console:
> 18.09.2010 00:11:24
> com.google.apphosting.utils.jetty.AppEngineAuthentication
> $AppEngineUserRealm isUserInRole
> INFO: Checking if principal  is in role admin
>
> When I publish the app and try to access the admin interface online
> there is a server error.
>
> I have a Google Apps account and the app is running under this
> account. Could this be an issue?
>
> Best Regards
> Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Cannot access Admin Interface on Localhost

2010-09-22 Thread l.denardo
Can't help with production issue, sorry.
Maybe if you post your web.xml settings we can figure out what's going
on.
To login as admin in production, as far as I know, you must only sign
in with the Google account you use as your appengine administration
account. The admin pages you set as "admin only" in your web.xml
should not be accessible if you are not logged in.

For class loader, be sure to use only whitelisted classes in your app.

Regards
Lorenzo

On Sep 21, 10:34 pm, sbaechler  wrote:
> Hi Lorenzo
>
> I was finally able to login but only after I commented out a section.
> I had to comment out
> CONFIDENTIAL guarantee>...
> in web.xml. After that I was able to login as administrator locally.
>
> I haven't been able yet to log in as administrator on the live site
> though. But this time I'm getting a 404 error. The app is the Youtube
> Direct Java app. The frontend is working. But I'm not even getting to
> the login screen.
>
> The log says this:
>
> com.google.inject.internal.FinalizableReferenceQueue$SystemLoader
> loadFinalizer: Not allowed to access system class loader.
>
> (and more similar things.)
>
> Regards
> Simon
>
> On 20 Sep., 12:00, "l.denardo"  wrote:
>
> > Hello,
> > on local server you have a fake authentication which allows simulation
> > of admin login.
> > If you open your front end with your browser, you should see a login
> > box showing "t...@examle.com" as login name, with a "sign in as
> > administrator" checkbox.
>
> > You must sign in as admin if you want to see the pages you marked as
> > restricted in your web.xml.
>
> > No-login access is only for the local admin console (_ah/admin), but
> > for anything you explicitly restrict you must sign in as
> > administrator.
>
> > Regards
> > Lorenzo
>
> > On Sep 18, 2:29 am, sbaechler  wrote:

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: User ID and OpenID: ID is unique?

2010-10-07 Thread l.denardo
I guess this should be unique (otherwise API will be broken!!). Maybe
it's generated from the unique openID identifier.

I can surely state that for Google Apps users the ID is the same using
direct Google Apps login (application is "restricted to a Google Apps
domain you own") and OpenID.
I store IDs in objects in the datastore and a comparison of the two
(using Datastore Viewer in admin console) showed it's the same (in
different apps by the way).

Regards
Lorenzo

On Oct 7, 9:34 am, fhtino  wrote:
> Hello,
>
> I'm testing the SDK builtin support for openid. I've a question.
>
> From documentation: "The User object exposes a unique user ID that is
> guaranteed to be stable for the lifetime of the user's account, 
> "http://code.google.com/appengine/docs/java/users/overview.html#Users_...
>
> My code:
> UserService userService = UserServiceFactory.getUserService();
> User user = userService.getCurrentUser();
> String id = user.getUserId();
>
> Is it valid also for OpenID authenticated user?  Does Google guarantee
> it as unique? If yes, how Google can do that? I'm curious.  :)
>
> fabrizio

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Problem reading property file in GWT

2010-10-11 Thread l.denardo
You may have better luck in GWT discussion groups...
Anyway it seems you're mixing Constants and Message annotations.

The correct way is

class Test extends Constants{
@DefaultStringValue("this is my alert!!")
public String displayAlert();
}

//use
public static Test constants = GWT.create(Test.class);   //No cast
needed
Window.alert(constants.displayAlert());

Test_**.properties
displayAlert = message for language **

Regards
Lorenzo

On Oct 11, 10:22 am, Vibhuti Gupta  wrote:
> Hello
>
> I am facing problem reading property file in GWT. I created an interface
> which extends the Constants interface and defined methods corresponding to
> the properties in properties file.
> When I run my application I get the following errors:
>
> com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException: No
> resource found for key 'display.alert'
>     at
> com.google.gwt.i18n.rebind.AbstractResource$ResourceList.getRequiredStringExt(AbstractResource.java:246)
>     at
> com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor(SimpleValueMethodCreator.java:95)
>     at
> com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:313)
>     at
> com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody(ConstantsImplCreator.java:163)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:265)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:233)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:116)
>     at
> com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:133)
>
> As per the java docs, I have created the properties file in the same name as
> the interface i.e. Test.java(I) and Test.properties.
> I am accessing the constants the following way:
>
> public interface Test extends com.google.gwt.i18n.client.Constants{
> @Key("display.alert")
>     String displayAlert();
>
> }
>
> public static Test constants = (Test) GWT.create(Test.class);
>
> constants.displayAlert();
>
> Any ideas on what am I missing here.
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Problem reading property file in GWT

2010-10-11 Thread l.denardo
A link to documentation on the matter:

http://code.google.com/webtoolkit/doc/latest/tutorial/i18n.html#international

Regards
Lorenzo

On Oct 11, 10:22 am, Vibhuti Gupta  wrote:
> Hello
>
> I am facing problem reading property file in GWT. I created an interface
> which extends the Constants interface and defined methods corresponding to
> the properties in properties file.
> When I run my application I get the following errors:
>
> com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException: No
> resource found for key 'display.alert'
>     at
> com.google.gwt.i18n.rebind.AbstractResource$ResourceList.getRequiredStringExt(AbstractResource.java:246)
>     at
> com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor(SimpleValueMethodCreator.java:95)
>     at
> com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:313)
>     at
> com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody(ConstantsImplCreator.java:163)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:265)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:233)
>     at
> com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:116)
>     at
> com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:133)
>
> As per the java docs, I have created the properties file in the same name as
> the interface i.e. Test.java(I) and Test.properties.
> I am accessing the constants the following way:
>
> public interface Test extends com.google.gwt.i18n.client.Constants{
> @Key("display.alert")
>     String displayAlert();
>
> }
>
> public static Test constants = (Test) GWT.create(Test.class);
>
> constants.displayAlert();
>
> Any ideas on what am I missing here.
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Unable to create new apps: "The phone number has been sent too many messages or has already been used to confirm an account"

2010-10-15 Thread l.denardo
To create new apps, just log in to google.com/appengine  (add /a/
yourdomai.com for apps accounts) and you'll see a button to create
your new app.

If you need to reuse the same phone number for a different account
there's a manual verification form you can fill in at
https://appengine.google.com/waitlist/sms_issues

Regards
Lorenzo

On Oct 15, 11:31 am, Tom  wrote:
> Hi, sorry to be a pain - is this the right place to post this kind of
> question or should I try contacting support?
>
> Thank you
>
> Tom
>
> On Oct 13, 4:31 pm, Tom  wrote:
>
> > Hi,
>
> > I currently have one app in my account, I'm trying to add a second but
> > when I do I get taken to the confirm by SMS page and when I put in my
> > mobile number I get this:
>
> > "The phone number has been sent too many messages or has already been
> > used to confirm an account"
>
> > I think it has already been used to confirm an account, mine!
>
> > Any ideas?
>
> > Thanks
>
> > Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Eclipse plugin with 1.3.8 doesn't recognize local data from 1.3.7 (local_db.bin)

2010-10-20 Thread l.denardo
Do you mean you were able to read old (I mean created using 1.3.7)
data using 1.3.8?

For what I've tried (and read reports about) switching to 1.3.8 does
not show old data, but the local_bd.bin is left untouched, so simply
reverting to 1.3.7 will work.
Ikai Lan replied that this is a known issue that is under
investigation.

If you managed to see your old data in 1.3.8 can you please give some
advice about how doing so?

Thanks very much
Lorenzo

On Oct 19, 11:34 pm, Aurelian 
wrote:
> i had the same problem, but fortunately was able to restore the
> local_db.bin file from git version control.
>
> happy coding
>
> On Oct 19, 3:53 pm, Marc Hacker  wrote:
>
> > When I compile in eclipse using the new app engine 1.3.8 my app finds
> > no data that was saved into the local datastore when I previously ran
> > under 1.3.7. When I recompile using 1.3.7 everything works great.
>
> > Somehow 1.3.8 is not recognizing a local_db.bin file saved with 1.3.7
>
> > Issue raised:http://code.google.com/p/googleappengine/issues/detail?id=3909

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using a manifest file with an application hosted on App Engine without going through the App Marketplace

2010-10-29 Thread l.denardo
I think (didn't try, but I'm planning to port an app to marketplace
too, so I'm investigating) that your universal navigation bar cannot
be manually upgraded.
The only way to do it is automatic, by submitting the app in the
marketplace (of course, paying the $100 fee). Then you can do test
installation in your domain, and your navigation bar should be
updated.

http://www.google.com/support/forum/p/apps-apis/thread?tid=77844ece5f522630&hl=en
The answer here seems to confirm that it cannot be done.

Regards
Lorenzo

On Oct 28, 11:07 pm, Jeremiah  wrote:
> Is this question not clear enough or does nobody know the answer?
>
> On Oct 26, 2:19 pm, Jeremiah  wrote:
>
> > Hello everyone,
>
> > I am new to App Engine and have been developing my first application
> > for a few weeks now. My application is hosted on App Engine, and I
> > have installed a beta version to a Google Apps Domain that I manage. I
> > have the application up and running just fine, but now I am trying to
> > place a link to my application in the Universal Navigation "More" drop
> > down menu. I have read several tutorials that instruct me to build a
> > manifest xml file that will be utilized when I list my application on
> > Google Apps Marketplace. However I have no intention of listing my
> > application on the marketplace, does this mean that I can't integrate
> > my application into to universal nav bar?
>
> > I am already utilizing SSO through the Google User API, and I suppose
> > I could publish the app on the marketplace, but it seems silly to have
> > to. I am developing in Eclipse with the App Engine SDK. Can I just add
> > a manifest file to my application in eclipse somehow that will update
> > when I deploy the application?
>
> > Thanks in advance for any help you can offer.
>
> > -Jeremiah

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using datastore with users who are not logged in with Google account

2010-11-02 Thread l.denardo
As far as I know you can use some workarounds:

*Use OpenID as an authentication option and accept as many providers
you can (usually Gmail, Google Apps, Facebook, Yahoo are used). This
will enlarge your user base.
*Just leave a demo page out of security constraint: you can serve
content to users who did non authenticate, simply adjust the URLs you
set as protected in your web.xml
*Write your custom User model, a subscription form and a basic
authentication check. I'm trying to avoid this, since it exposes to
possible failures.

I think for your use case the best thing would be to simply leave open
access to users.

Regards
Lorenzo

On Nov 2, 2:41 pm, Zeynel  wrote:
> Hello,
>
> I am reading the Users Service before I deploy my app. I was wondering
> if you can explain if it is possible for a user to choose a nickname
> and start using the app without logging in with Google account. All I
> need to do is to write the user input to datastore and retrieve it.
> The point is to let users try the app without logging in. Thanks for
> any advice.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-06 Thread l.denardo
You can use the explicit addresses for OpenID endpoints:

userService.createLoginURL(redirectTo, "gmail.com",

"https://www.google.com/accounts/o8/id";, attributesRequest);

String appsLoginUrl = userService.createLoginURL(redirectTo,
loginDomain,

"https://www.google.com/accounts/o8/site-xrds?hd="; +
loginDomain, attributesRequest);

These should work to filter only google accounts and apps accounts for
your requests.
I switch between the two using a simple request parameter.

Regards
Lorenzo


On Dec 1, 6:59 pm, AmaltasCoder  wrote:
> My application on GAE should work for both Google Accounts and Google
> Apps accounts. I understand that UserService on app engine makes the
> task of using OpenID easy. I generate the Login/Logout url's as
> follows, can someone please check if these are correct calls:
>
> Login URL for Google Account:
>
> UserService userService = UserServiceFactory.getUserService();
> userService.createLoginURL(destinationURL, null, "gmail.com", new
> HashSet())
>
> Login URL for Google Apps Account:
>
> UserService userService = UserServiceFactory.getUserService();
> userService.createLoginURL(destinationURL, null,
> "googleappsdomaintouse.com", new HashSet())
>
> Logout URL for Google Account and Google Apps account:
>
> UserService userService = UserServiceFactory.getUserService();
> User user = userService.getCurrentUser();
> userService.createLogoutURL(destinationURL, user.getAuthDomain())

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: FederatedLogin: Is logout supported?

2010-12-06 Thread l.denardo
Logout works *for your app*. This means that your user is logged out
from your app, but must explicitly log out from his Google Account.
If the user comes back to your app while still being logged in to
Google and you accept login without any intermediate step, he will be
logged in again in your application.

If he logged out from Google, or you provide an intermediate step
(e.g. your app login page asks if you want to login with Google
accounts or Google Apps) everything will work fine.

Regards
Lorenzo

On Dec 6, 10:17 am, dflorey  wrote:
> Hi,
> is logout currently supported with FederatedLogin on app engine?
> Is it possible to use the logout url and login afterwards with a
> different email on the same domain or will it automatically login with
> the previous email until I empty all cookies?
> I've read about this a while ago in the docs, but the note is gone so
> I'm wondering if this is now fixed.
>
> Thanks,
>
> Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using OpenID with Google App Engine and its UserService

2010-12-07 Thread l.denardo
This is correct, in my opinion.
In my app if I detect an attempt to log in with Google Apps I send an
immediate redirect to Google's login page, without showing the login
page of my application.

Google Apps Marketplace allows you to detect this using the url you
give in the manifest, it has a parameter that Google should fill with
the domain name.

As for the userID problem, I have never tried other providers than
Google, but the documentation (not javadoc) used to say that openID
users are a superset for Google Accounts, so I think a valid id should
be provided also for other providers.

Regards
Lorenzo

On Dec 6, 2:55 pm, Ross M Karchner  wrote:
> I've been thinking about this myself, for a few days.
>
> In order to sell a GAE app on Google Apps Marketplace, must we:
>
> - Use OpenID
> - force users to only use Google's OpenID
>
> (that last bit seems to be the logical conclusion from the directive not to
> show an intermediate login screen)
>
> Is this correct?
>
>
>
> On Mon, Dec 6, 2010 at 6:28 AM, l.denardo  wrote:
> > You can use the explicit addresses for OpenID endpoints:
>
> > userService.createLoginURL(redirectTo, "gmail.com",
> >                                        "
> >https://www.google.com/accounts/o8/id";, attributesRequest);
>
> > String appsLoginUrl = userService.createLoginURL(redirectTo,
> > loginDomain,
> >                                                "
> >https://www.google.com/accounts/o8/site-xrds?hd="; +
> > loginDomain, attributesRequest);
>
> > These should work to filter only google accounts and apps accounts for
> > your requests.
> > I switch between the two using a simple request parameter.
>
> > Regards
> > Lorenzo
>
> > On Dec 1, 6:59 pm, AmaltasCoder  wrote:
> > > My application on GAE should work for both Google Accounts and Google
> > > Apps accounts. I understand that UserService on app engine makes the
> > > task of using OpenID easy. I generate the Login/Logout url's as
> > > follows, can someone please check if these are correct calls:
>
> > > Login URL for Google Account:
>
> > > UserService userService = UserServiceFactory.getUserService();
> > > userService.createLoginURL(destinationURL, null, "gmail.com", new
> > > HashSet())
>
> > > Login URL for Google Apps Account:
>
> > > UserService userService = UserServiceFactory.getUserService();
> > > userService.createLoginURL(destinationURL, null,
> > > "googleappsdomaintouse.com", new HashSet())
>
> > > Logout URL for Google Account and Google Apps account:
>
> > > UserService userService = UserServiceFactory.getUserService();
> > > User user = userService.getCurrentUser();
> > > userService.createLogoutURL(destinationURL, user.getAuthDomain())
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ross M Karchnerhttp://eventgrinder.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: FederatedLogin: Is logout supported?

2010-12-07 Thread l.denardo
You must log out from the Google Account you used to log in from your
app, otherwise you'll get logged in again (logout from your app works:
in fact, you're being logged in again with a new session): after all,
that's what single sign on is meant to do :-)

What you can do is deploy a servlet at /_ah/openid_logout which says
to your user "you logged out: logout from Google too" and provide the
logout link for Google Accounts (e.g. 
https://mail.google.com/mail/?logout&hl=en)
or Google Apps (https://mail.google.com/a/mydomain.com/?logout&hl=en-
GB).

AFAIK there's no other chance to do it: I can confirm Atlassian Jira
uses this approach to manage this use case (that's where I copied it
from, btw).

Regards
Lorenzo

On Dec 7, 3:31 pm, dflorey  wrote:
> Do you know any working app with a proper OpenID workflow where I can
> test if this really works?
> I want to achieve that a user can login to the app, logout and can
> login with a different account of the same domain (without being
> forced to clear the cache manually).
>
> On 6 Dez., 12:33, "l.denardo"  wrote:
>
> > Logout works *for your app*. This means that your user is logged out
> > from your app, but must explicitly log out from his Google Account.
> > If the user comes back to your app while still being logged in to
> > Google and you accept login without any intermediate step, he will be
> > logged in again in your application.
>
> > If he logged out from Google, or you provide an intermediate step
> > (e.g. your app login page asks if you want to login with Google
> > accounts or Google Apps) everything will work fine.
>
> > Regards
> > Lorenzo
>
> > On Dec 6, 10:17 am, dflorey  wrote:
>
> > > Hi,
> > > is logout currently supported with FederatedLogin on app engine?
> > > Is it possible to use the logout url and login afterwards with a
> > > different email on the same domain or will it automatically login with
> > > the previous email until I empty all cookies?
> > > I've read about this a while ago in the docs, but the note is gone so
> > > I'm wondering if this is now fixed.
>
> > > Thanks,
>
> > > Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: In development mode why my local data is deleted sporadically ?

2010-12-13 Thread l.denardo
Also, local data seem to be cleared any time the dev server encounters
an error.
If you reload your server (or client) too many times (2-3 server, 8-10
gwt client) and you get a "perm gen space error" then your local data
will be cleared. This seems specific to 1.4.0.

Anyway, you can simply put the local db file under source control, and
revert it when local data get cleared. This is not the cleanest way to
handle this behavior, but saves you some time.

Regards
Lorenzo

On Dec 11, 10:08 am, Ian Marshall  wrote:
> If you haven't deleted your local_db.bin file and you are getting this
> problem, so a search on this problem in this forum. I have described
> this problem and its "cause" - as has Ikai.
>
> (My latest response is not listed against my profile but you might be
> able to see it from Mon 13 Dec.)
>
> On Dec 11, 1:48 am, "Ikai Lan (Google)" 
> wrote:
>
> > The local datastore is stored in a file called local_db.bin. You're probably
> > deleting this on new builds or cleans.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blogger:http://googleappengine.blogspot.com
> > Reddit:http://www.reddit.com/r/appengine
> > Twitter:http://twitter.com/app_engine
>
> > On Fri, Dec 10, 2010 at 5:45 AM, suersh babu wrote:
>
> > > Hi,
>
> > > I have experienced that my local data is deleted sporadically in my
> > > development mode.
>
> > > Is some one experience this issue before,  and figured it why this is
> > > happening 
>
> > > Any suggestion about this is much appreciated.
>
> > > I am using Eclipse IDE 3.6,  App Engine SDK 1.3.8,  objectify, and gwt 
> > > 2.1.
>
> > > --
> > > *Regards
>
> > > Suresh Babu G*
>
> > >   --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Cannot access applications anymore

2010-12-23 Thread l.denardo
Hello,
when I log in to appengine, only applications I created are shown.

Applications that I've been added as a developer don't show.

I guess this is due to the fact I was signed in in the same browser
with a Google Apps account: some of the authorizations were
transferred to my google apps account without any request.

Trace:
*I was signed in to my google apps account
*I was invited to app hon-statistics with my gmail account
*I logged into gmail and accepted. Logged to regular appengine, and
all apps showed correctly.
*Logged out from gmail
*Logged in again to appengine/gmail. At this point only the
applications I created showed, hon-statistics disappeared along with
other apps
*My Google Apps account was added as a developer to hon-statistics,
without any invitation, and gmail resulted removed
*My gmail account was invited again, I accepted and logged in to
appengine/gmail again: hon-statistics showed, my apps showed, other
apps I am a developer only (not owner) don't show.

Please take notice of this, and prevent these problems if a user signs
in with different accounts in the same browser.

Regards
Lorenzo

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: geo-targeted websites on app engine

2011-01-12 Thread l.denardo
See
http://groups.google.com/group/google-appengine/browse_thread/thread/3b8dccfe496550fc/3f4f1ae7d390af78?lnk=gst&q=north+american+data+centers#3f4f1ae7d390af78

Regards
Lorenzo

On Jan 12, 11:16 am, Maxim Veksler  wrote:
> Can you please provide reference to this very important claim?
>
> On Tue, Jan 11, 2011 at 11:19 PM, Geoffrey Spear wrote:
>
> > Appengine is entirely hosted in North American datacenters at the
> > moment.
>
> > On Jan 10, 4:56 pm, brady  wrote:
> > > I'm under development of a simple web app which will be targeting
> > > india... considering hosting it on app engine, but am curious how it
> > > handles specifically geographically targeted sites? Is there a way to
> > > instruct app engine where my target audience is, will it try to run
> > > the app from servers close to that region, and/or is this
> > > automatically detected and I need to do nothing for it.. etc. Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: CSS

2011-01-13 Thread l.denardo
Just a guess...
are you using GWT with development mode or similar frameworks?

In GWT, development mode (on the fly execution) and production mode
(compiled javascript) sometimes differ in layout details, such as
dimensions, float, HTML elements wraparound behavior.
If you don't try a compiled version of your front end before deploying
you can miss to notice such differences.

Buona fortuna
Lorenzo

On Jan 13, 2:42 pm, Massimiliano 
wrote:
> The css is loaded, as everything is working well (background, box dimension,
> font,), only the float is not working!!
>
> 2011/1/13 Martin Webb 
>
>
>
> > This may seem stupid - but if the css file is an include and the css not
> > working when deployed have you checked your url - is it correct? Have you
> > tried just a simple css block in the HTML. I use loads of css on my site no
> > issues, also are you checking on same pc/different browser or is everything
> > the same.
>
> > Regards
>
> > *Martin Webb*
>
> > The information contained in this email is confidential and may contain
> > proprietary information. It is meant solely for the intended recipient.
> > Access to this email by anyone else is unauthorised. If you are not the
> > intended recipient, any disclosure, copying, distribution or any action
> > taken or omitted in reliance on this, is prohibited and may be unlawful. No
> > liability or responsibility is accepted if information or data is, for
> > whatever reason corrupted or does not reach its intended recipient. No
> > warranty is given that this email is free of viruses. The views expressed in
> > this email are, unless otherwise stated, those of the author
>
> > --
> > *From:* Massimiliano 
> > *To:* google-appengine@googlegroups.com
> > *Sent:* Thu, 13 January, 2011 11:02:46
> > *Subject:* Re: [google-appengine] CSS
>
> > Yes, I have waited more of 24h. I'm dealing whit this from Sunday.
> > I can't understand why with the same browser on the same pc, offline it
> > works, online it doesn't.
>
> > 2011/1/13 Wim den Ouden 
>
> >> Did you wait for a moment and try it again?
> >> static files are stored on a server near you, app files on the appengine
> >> server
> >> gr
> >> wim
>
> >> 2011/1/13 Massimiliano :
> >> > Dear all,
> >> > I'm building a web site and I'm working with the float tag on my CSS.
> >> > The website is working well offline, but when I deploy it on the
> >> appegine
> >> > all the box are in one column in the right (instead of some blocks
> >> floating
> >> > on the left and some others on the right).
> >> > Is something I need to know in using CSS for appengine? I can't find
> >> > documentation about this.
> >> > Regards
> >> > Max
> >> > --
>
> >> > My email: massimiliano.pietr...@gmail.com
> >> > My Google Wave: massimiliano.pietr...@googlewave.com
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups
> >> > "Google App Engine" group.
> >> > To post to this group, send email to google-appengine@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > google-appengine+unsubscr...@googlegroups.com
> >> .
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/google-appengine?hl=en.
>
> >> --
> >> gr
> >> Wim den Ouden
> >> Custom applications,https://e-comm.appspot.com/
> >> Free open source E-commerce framework (web) apps,
> >>http://code.google.com/p/relat/
> >> Gae developer tips,http://code.google.com/p/relat/wiki/gaetips
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google App Engine" group.
> >> To post to this group, send email to google-appengine@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-appengine+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine?hl=en.
>
> > --
>
> > My email: massimiliano.pietr...@gmail.com
> > My Google Wave: massimiliano.pietr...@googlewave.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
>
> My email: massimiliano.pietr...@gmail.com
> My Google Wave: massimiliano.pietr...@googlewave.com

-- 
You received this message because you are subscribed to the Googl

[google-appengine] Re: in future, can i change my datastore to High Replication without changing appid?

2011-01-17 Thread l.denardo
See comments by Ikai Lan in this thread:

http://groups.google.com/group/google-appengine/browse_thread/thread/dbebe4482008eb3e/b06fe2c1f7e69e1f?lnk=gst&q=+high+replication#b06fe2c1f7e69e1f

"...Robert, in future releases, we will allow developers to create
aliases for
their applications. Aliases are routing rules that will override the
current
routing..."

He also links a request form for (experimental) aliases. Try to see
there if it fits your needs.

Regards
Lorenzo

On Jan 16, 11:38 pm, Barry Hunter  wrote:
> Run the domain though a proxy.
>
> Could even do it for free withhttp://www.cloudflare.com/
>
> try alsohttp://www.maxcdn.com/or similar cdns - basically provides
> proxy at lost cost.
>
> (unless you want to run your own private proxy, using a cheap vm somewhere)
>
> 2011/1/16 saintthor :
>
> > all custom domains from china to google apps are gfwed
>
> > On 1月16日, 上午1时13分, Barry Hunter  wrote:
> >> No.
>
> >>http://code.google.com/appengine/docs/python/datastore/hr/
>
> >> I beleive the recommended solution if you anticipate you might want to
> >> switch, is to use a custom domain.
>
> >> That way can remap the domain to a new appid if you do change the 
> >> datastore.
>
> >> On 15 January 2011 17:11, saintthor  wrote:
>
> >> > as title.
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to google-appengine@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > google-appengine+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread l.denardo
GWT compiles your java source into javascript using a restricted
subset of allowed classes, and you cannot use anything built on non-
compatible classes, tipically you cannot read classes with persistence-
related annotatios.

Source code for your DTO must be accessible to thw GWT compiler. This
is done adding a "source" entry in your gwt.xml file, as documented
here:
http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#components

In your case adding a  should do.

regards
Lorenzo

On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
> I have resulted into using DTO to provide the client information about my
> Entity. My DTO has the same getter and setter signatures just like it's
> respective Entity.
>
> But still getting "No source code is available for type com.foo.UsersDTO;
> did you forget to inherit a required module?"
>
> How do I then access persisted Entity objects from the client-side?
>
>
>
> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:
> > To provide more details, I am sending data to the server via GWT-RPC. On
> > the server I'm returning an Entity class object mapped by JPA. So on the
> > client, I requested for the object via the normal way (AsyncCallback). So
> > when I compile the code, GWT reports a "No source code" error, meaning I'm
> > referencing the server class on the client side.
>
> > Some of my findings report that I either create the Entity on the client
> > side so that GWT can find it or create an implementation of the Entity on
> > the client side overriding all the necessary methods. I am not sure about
> > the former as I believe the Entity is meant to be on the server because it
> > needs access to JPA. On the later, I have no idea of how to implement that
> > as the Entity needs access to JPA (GWT can't compile server code on the
> > client side!).
>
> > Any clues please.
>
> > On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi  wrote:
>
> >> Hello,
>
> >> I will appreciate some guide as to where exactly to put JPA mapped Entity
> >> classes. At the moment I have it
> >> under "com.foo.server.domain". But whenever I compile the app, GWT
> >> returns:
>
> >> No source code is available for type com.foo.server.domain.Users; did you
> >> forget to inherit a required
> >> module?
>
> >> --
>
> > --
>
> --
> Odeyemi 'Kayode O.
>
> B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
> Professional),
> Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer
>
> Website:http://sinati.com
> Socialize with me:http://profile.to/charyorde,http://twitter.com/charyorde,
>
> http://www.google.com/profiles/dreyemi
> Skype:drecute

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread l.denardo
Yes, that's the reason. The libraries you use must be avaiable as
source code, configured in a gwt module, and use compatible classes.

As Jeff suggested, there's a number of GWT libraries which help making
some of the non-supported classes translatable to GWT.
I can only mention this article on the subject
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html,
but I can't give more help since I never tried such libraries myself.

Also you might want to join the GWT discussion group
http://groups.google.com/group/Google-Web-Toolkit to ask gwt related
questions.

Regards
Lorenzo

On Feb 21, 7:14 am, Kayode Odeyemi  wrote:
> Thanks L
>
> Could this be a reason why my Persistence-aware Entities cannot be
> compiled even after placing them under client package? I did relocate
> the Entities as well as added to my module file this:
> 
>     
>     
>
> But in as much as compile was successful, I still get the errors:
>
>  The import javax.persistence cannot be resolved
>          [ERROR] Line 10: The import javax.persistence cannot be resolved
>          [ERROR] Line 18: Entity cannot be resolved to a type
>          [ERROR] Line 21: Id cannot be resolved to a type
>          [ERROR] Line 22: GeneratedValue cannot be resolved to a type
>          [ERROR] Line 22: The attribute strategy is undefined for the
> annotation type GeneratedValue
>          [ERROR] Line 22: GenerationType cannot be resolved
>          [ERROR] Line 25: Table cannot be resolved to a type
>          [ERROR] Line 25: The attribute name is undefined for the
> annotation type Table
>          [ERROR] Line 26: NamedQueries cannot be resolved to a type
>
> On 2/21/11, l.denardo  wrote:
>
>
>
> > GWT compiles your java source into javascript using a restricted
> > subset of allowed classes, and you cannot use anything built on non-
> > compatible classes, tipically you cannot read classes with persistence-
> > related annotatios.
>
> > Source code for your DTO must be accessible to thw GWT compiler. This
> > is done adding a "source" entry in your gwt.xml file, as documented
> > here:
> >http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#com...
>
> > In your case adding a  should do.
>
> > regards
> > Lorenzo
>
> > On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
> >> I have resulted into using DTO to provide the client information about my
> >> Entity. My DTO has the same getter and setter signatures just like it's
> >> respective Entity.
>
> >> But still getting "No source code is available for type com.foo.UsersDTO;
> >> did you forget to inherit a required module?"
>
> >> How do I then access persisted Entity objects from the client-side?
>
> >> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:
> >> > To provide more details, I am sending data to the server via GWT-RPC. On
> >> > the server I'm returning an Entity class object mapped by JPA. So on the
> >> > client, I requested for the object via the normal way (AsyncCallback).
> >> > So
> >> > when I compile the code, GWT reports a "No source code" error, meaning
> >> > I'm
> >> > referencing the server class on the client side.
>
> >> > Some of my findings report that I either create the Entity on the client
> >> > side so that GWT can find it or create an implementation of the Entity
> >> > on
> >> > the client side overriding all the necessary methods. I am not sure
> >> > about
> >> > the former as I believe the Entity is meant to be on the server because
> >> > it
> >> > needs access to JPA. On the later, I have no idea of how to implement
> >> > that
> >> > as the Entity needs access to JPA (GWT can't compile server code on the
> >> > client side!).
>
> >> > Any clues please.
>
> >> > On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi 
> >> > wrote:
>
> >> >> Hello,
>
> >> >> I will appreciate some guide as to where exactly to put JPA mapped
> >> >> Entity
> >> >> classes. At the moment I have it
> >> >> under "com.foo.server.domain". But whenever I compile the app, GWT
> >> >> returns:
>
> >> >> No source code is available for type com.foo.server.domain.Users; did
> >> >> you
> >> >> forget to inherit a required
> >> >> module?
>
> >> >> --
>
> >> > --
>
> >> --
> >> Odeyemi &#

[google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread l.denardo
Hello, that's the reason.
To use a java library in GWT this must be translatable to javascript,
i.e. source code must be available, packaged in a gwt module, and only
compatible classes must be used.

As Jeff mentioned there's a number of libraries which try to make
persistence related classes compatible to GWT. I can mention this
article on the subject 
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html,
but I can't give more help since I never tried such libraries myself.

Also, you might want to join the GWT discussion group here
http://groups.google.com/group/Google-Web-Toolkit to ask gwt related
questions.

Regards
Lorenzo


On Feb 21, 7:14 am, Kayode Odeyemi  wrote:
> Thanks L
>
> Could this be a reason why my Persistence-aware Entities cannot be
> compiled even after placing them under client package? I did relocate
> the Entities as well as added to my module file this:
> 
>     
>     
>
> But in as much as compile was successful, I still get the errors:
>
>  The import javax.persistence cannot be resolved
>          [ERROR] Line 10: The import javax.persistence cannot be resolved
>          [ERROR] Line 18: Entity cannot be resolved to a type
>          [ERROR] Line 21: Id cannot be resolved to a type
>          [ERROR] Line 22: GeneratedValue cannot be resolved to a type
>          [ERROR] Line 22: The attribute strategy is undefined for the
> annotation type GeneratedValue
>          [ERROR] Line 22: GenerationType cannot be resolved
>          [ERROR] Line 25: Table cannot be resolved to a type
>          [ERROR] Line 25: The attribute name is undefined for the
> annotation type Table
>          [ERROR] Line 26: NamedQueries cannot be resolved to a type
>
> On 2/21/11, l.denardo  wrote:
>
>
>
> > GWT compiles your java source into javascript using a restricted
> > subset of allowed classes, and you cannot use anything built on non-
> > compatible classes, tipically you cannot read classes with persistence-
> > related annotatios.
>
> > Source code for your DTO must be accessible to thw GWT compiler. This
> > is done adding a "source" entry in your gwt.xml file, as documented
> > here:
> >http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#com...
>
> > In your case adding a  should do.
>
> > regards
> > Lorenzo
>
> > On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
> >> I have resulted into using DTO to provide the client information about my
> >> Entity. My DTO has the same getter and setter signatures just like it's
> >> respective Entity.
>
> >> But still getting "No source code is available for type com.foo.UsersDTO;
> >> did you forget to inherit a required module?"
>
> >> How do I then access persisted Entity objects from the client-side?
>
> >> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:
> >> > To provide more details, I am sending data to the server via GWT-RPC. On
> >> > the server I'm returning an Entity class object mapped by JPA. So on the
> >> > client, I requested for the object via the normal way (AsyncCallback).
> >> > So
> >> > when I compile the code, GWT reports a "No source code" error, meaning
> >> > I'm
> >> > referencing the server class on the client side.
>
> >> > Some of my findings report that I either create the Entity on the client
> >> > side so that GWT can find it or create an implementation of the Entity
> >> > on
> >> > the client side overriding all the necessary methods. I am not sure
> >> > about
> >> > the former as I believe the Entity is meant to be on the server because
> >> > it
> >> > needs access to JPA. On the later, I have no idea of how to implement
> >> > that
> >> > as the Entity needs access to JPA (GWT can't compile server code on the
> >> > client side!).
>
> >> > Any clues please.
>
> >> > On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi 
> >> > wrote:
>
> >> >> Hello,
>
> >> >> I will appreciate some guide as to where exactly to put JPA mapped
> >> >> Entity
> >> >> classes. At the moment I have it
> >> >> under "com.foo.server.domain". But whenever I compile the app, GWT
> >> >> returns:
>
> >> >> No source code is available for type com.foo.server.domain.Users; did
> >> >> you
> >> >> forget to inherit a required
> >> >> module?
>
> >> >> --
>
> >