Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:32:05+00:00 2026-05-31T04:32:05+00:00

I am using UserService to redirect to login page: String loginURL = userService.createLoginURL(request.getRequestURI()); throw

  • 0

I am using UserService to redirect to login page:

String loginURL = userService.createLoginURL(request.getRequestURI());
throw new ModelAndViewDefiningException(new ModelAndView(new RedirectView(loginURL, false)));

This is resulting in URL like:

https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%253Fcontinue%253Dhttp://www.example.com/logingoogle.htm&ltmpl=gm&ahname=example&sig=5291e6bad7249c73c4968655133c87c5

(example = my domain name)

when someone is redirected, Google displays page with error:

The page you requested is invalid.

Any ideas what I am doing wrong?
This is so annoying, I tried to find solution for this – without any luck.

This is happening with GAE JDK 1.4.3 (Java)

Exactly same code was working in version 1.3.2, after a while I decided to play again with GAE, upgraded libraries … and now I have issue with logging in.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:32:06+00:00Added an answer on May 31, 2026 at 4:32 am

    I encountered this problem today with GAE 1.6.3.

    The login does not work with the URL you have given above:

    https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%253Fcontinue%253Dhttp://www.example.com/logingoogle.htm&ltmpl=gm&ahname=example&sig=5291e6bad7249c73c4968655133c87c5

    But it works if you replace “https://www.google.com/accounts/ServiceLogin?” with “https://accounts.google.com/ServiceLogin?” like this:

    https://accounts.google.com/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%253Fcontinue%253Dhttp://www.example.com/logingoogle.htm&ltmpl=gm&ahname=example&sig=5291e6bad7249c73c4968655133c87c5

    Unfortunately it is not possible to modify the URL, since it is generated by UserService.
    But i could get my app to generate the second URL in this way:

    The default page of my app has initially directed requests through a “jsp:forward” to the controller that checked if the user was logged in. I have changed my app so that the requests are processed at first place by the controller (without a previous forward). That solved my problem. But i can’t explain what lies behind this misbehaviour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wiring my UserService type classes using spring's IOC. But what about my
My homecontroller has a UserService object that gets wired using spring correctly (it renders
I'm coding a website that will be almost fully protected by login (I'm using
Iam trying to pass dynamic argument values i.e username from request using spring ioc.But
I'm using Ninject to do dependency injection. I have a userService in which I
I'm working on a new project and I'm using the repository pattern, I have
I am attempting to enable remember me functionality using spring security <bean id=userService class=mypath.service.UserDetailsServiceImpl
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.