[dyuproject] Problems deploying openid

8 views
Skip to first unread message

Oliver Uvman

unread,
May 3, 2010, 5:16:14 PM5/3/10
to dyuproject
Hello!

I've been trying for around 5 hours now, but can't get your (seemingly
great) library to work with my GWT app. At the moment I'm trying to
get the "login without leaving page" to work, but have also looked at
the page-refresh variant.

I'm trying to run your code to work, having followed the instructions
of http://code.google.com/p/dyuproject/wiki/OpenidLoginWithoutLeavingPage,
and I'm getting the app to run and display your login button. When I
press it, however, all I get is a popup showing a 404.

It is at the url http://localhost:8888/home/?popup=true (hosted mode
debugging)
and the text it shows is:
HTTP ERROR: 404

NOT_FOUND
RequestURI=/home/

Powered by Jetty://

I've tried placing the .jsp files in war, the public folder under the
gwt.xml, in WEB-INF/views and in WEB-INF/views/jsp. I have also tried
putting the home.jsp file in these places even though the instructions
don't tell me to use it.

Would appreciate any help a lot, thanks for making this code public!

Regards,
Oliver Uvman

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

David Yu

unread,
May 4, 2010, 12:13:34 AM5/4/10
to dyupr...@googlegroups.com
There's a typo in the popup_login.html.  I've fixed that in the wiki.

Look for:
window.open("home/?popup=true"

Changed the uri to:
"anyname.jsp?popup=true"

The problem was "home/" was not mapped to the openid servlet filter (*.jsp).

You might wanna try out the working example on modules/demos/openid-servlet as well.

Cheers
--
When the cat is away, the mouse is alone.
- David Yu

Oliver Uvman

unread,
May 4, 2010, 10:55:46 AM5/4/10
to dyuproject
Thanks a lot for speedy help, that sort of worked! Now I am getting
other problems, though. The window that pops up now contains an http
500 error, here is what it says: http://pastebin.com/rpGTg9b3

Would very much appreciate another speedy helpalong, thanks.

Regards,
Oliver Uvman

On 4 Maj, 06:13, David Yu <david.yu....@gmail.com> wrote:
> There's a typo in the popup_login.html.  I've fixed that in the wiki.
>
> Look for:
> window.open("home/?popup=true"
>
> Changed the uri to:
> "anyname.jsp?popup=true"
>
> The problem was "home/" was not mapped to the openid servlet filter (*.jsp).
>
> You might wanna try out the working example on modules/demos/openid-servlet
> as well.
>
> Cheers
>
>
>
>
>
> On Tue, May 4, 2010 at 5:16 AM, Oliver Uvman <embry...@gmail.com> wrote:
> > Hello!
>
> > I've been trying for around 5 hours now, but can't get your (seemingly
> > great) library to work with my GWT app. At the moment I'm trying to
> > get the "login without leaving page" to work, but have also looked at
> > the page-refresh variant.
>
> > I'm trying to run your code to work, having followed the instructions
> > ofhttp://code.google.com/p/dyuproject/wiki/OpenidLoginWithoutLeavingPage,
> > and I'm getting the app to run and display your login button. When I
> > press it, however, all I get is a popup showing a 404.
>
> > It is at the urlhttp://localhost:8888/home/?popup=true(hosted mode
> > debugging)
> > and the text it shows is:
> > HTTP ERROR: 404
>
> > NOT_FOUND
> > RequestURI=/home/
>
> > Powered by Jetty://
>
> > I've tried placing the .jsp files in war, the public folder under the
> > gwt.xml, in WEB-INF/views and in WEB-INF/views/jsp. I have also tried
> > putting the home.jsp file in these places even though the instructions
> > don't tell me to use it.
>
> > Would appreciate any help a lot, thanks for making this code public!
>
> > Regards,
> > Oliver Uvman
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "dyuproject" group.
> > To post to this group, send email to dyupr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > dyuproject+...@googlegroups.com<dyuproject%2Bunsubscribe@googlegrou ps.com>
> > .

David Yu

unread,
May 4, 2010, 9:33:01 PM5/4/10
to dyupr...@googlegroups.com
Its saying it cannot find the home.jsp file.
It would be something like the page of an authenticated user.
Something like the home.jsp of modules/demos/openid-servlet/src/main/webapp/

Cheers

David Yu

unread,
May 4, 2010, 10:33:55 PM5/4/10
to dyupr...@googlegroups.com
You can also just use:
window.open("login.jsp?popup=true"

It just needs a placeholder. (login.jsp already exists)

Cheers

Oliver Uvman

unread,
May 5, 2010, 5:41:08 AM5/5/10
to dyuproject
I've tried using both home.jsp and login.jsp, neither works. It finds
the jsp file now (before I got a 404 error), but now the error seems
to be that it can't compile the jsp file. :/

I'm going to have a closer look around tomorrow.

On 5 Maj, 04:33, David Yu <david.yu....@gmail.com> wrote:
> You can also just use:
> window.open("login.jsp?popup=true"
>
> It just needs a placeholder. (login.jsp already exists)
>
> Cheers
>
>
>
>
>
> On Wed, May 5, 2010 at 9:33 AM, David Yu <david.yu....@gmail.com> wrote:
> > Its saying it cannot find the home.jsp file.
> > It would be something like the page of an authenticated user.
> > Something like the home.jsp of
> > modules/demos/openid-servlet/src/main/webapp/
>
> > Cheers
>

Oliver Uvman

unread,
May 8, 2010, 7:06:02 PM5/8/10
to dyuproject
Found out the reason was that I had no JDK installed to compile
the .jsp with. Still haven't managed to get things working but at the
moment all obstacles seem possible to clear by myself.

/Oliver

Oliver Uvman

unread,
May 9, 2010, 8:39:10 PM5/9/10
to dyuproject
I have now successfully integrated your library in my project. Big
thanks again! You are doing the community a big service, be proud.

Regards,
Oliver Uvman

David Yu

unread,
May 9, 2010, 10:16:52 PM5/9/10
to dyupr...@googlegroups.com
Thats good to hear!
Btw, the jsps aren't required (just an example).
You can use it along with other templating engines.

Thanks,
David
Reply all
Reply to author
Forward
0 new messages