Closed GoogleCodeExporter closed 9 years ago
I update the URL from to pithos.grnet.gr to localhost:8080, but when I go to
http://localhost:8080/pithos/login, it fails and redirect to
https://localhost:8080/pithos/login?next=http://localhost:8080/pithos/ and it
cannot
display.
Original comment by chensc...@gmail.com
on 16 Feb 2010 at 11:49
I have login issue here.
Original comment by chensc...@gmail.com
on 17 Feb 2010 at 6:11
JBoss console output is attached.
Original comment by chensc...@gmail.com
on 17 Feb 2010 at 6:22
Attachments:
00:09:52,864 http-127.0.0.1-8080-2 ERROR () [[Login]] Servlet.service() for
servlet
Login threw exception
java.lang.ClassCastException: gr.ebs.gss.server.domain.User cannot be cast to
gr.ebs.gss.server.domain.User
Original comment by chensc...@gmail.com
on 17 Feb 2010 at 6:23
You need to have Shibboleth authentication set up in order to authenticate. The
first
step in the Shibboleth authentication process is a redirection to a WAYF (Where
Are
You From) server, for selecting the Identity Provider that has your
credentials. You
can read more about Shibboleth here:
http://en.wikipedia.org/wiki/Shibboleth
Alternatively, for development purposes you can use a shortcut in the server, to
authenticate without Shibboleth. You have to manually initialize a user entry
in the
database first (using SQL insert) and then set its username in the testUsername
property of the gss.properties configuration file. You can find it deployed in
JBOSS_HOME\server\default\conf\gss.properties. The proper URL for using in this
scenario is the following, which can be also found in the GWT hosted mode launch
configuration:
http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/
I'll make sure to update BUILD.txt with this information, but do let me know if
you
need any more help with this.
Original comment by past...@gmail.com
on 17 Feb 2010 at 8:29
I have modified JBOSS_HOME\server\default\conf\gss.properties to use the user
name of
scott: testUsername=scott, and insert a record in table - gss_user in the
database.
Then open a browser, go to
http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/, and I
get the
error and the JBoss console output attached:
--------------------------------------------------------------------------------
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
java.lang.ClassCastException: gr.ebs.gss.server.domain.User cannot be cast to
gr.ebs.gss.server.domain.User
$Proxy203.findUser(Unknown Source)
gr.ebs.gss.server.Login.service(Login.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
gr.ebs.gss.server.CacheFilter.doFilter(CacheFilter.java:63)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Original comment by chensc...@gmail.com
on 17 Feb 2010 at 9:45
Attachments:
Can you provide some sample/example data/scripts for the database? Thanks!
-Scott
Original comment by chensc...@gmail.com
on 17 Feb 2010 at 9:59
There should definitely exist an initialization script for the database.
Unfortunately it's a bit difficult for me to do the necessary deployment and
testing
right now. The class cast exception could be caused by a failure to find
connected
entries in other tables, like userclass that holds the quota information. Can
you add
an entry for that table, too? If it still doesn't work, can you send me your db
contents or the commands you used to initialize them?
Original comment by past...@gmail.com
on 18 Feb 2010 at 8:53
[deleted comment]
Since revision 305438787c there is a user registration workflow implemented.
Now you shouldn't need to
initialize the first user using SQL commands. The registration page is at:
http://127.0.0.1:8080/pithos/register
Since login requires Shibboleth, the registration process creates an account in
an external LDAP server in addition
to adding a row to the user table in the DBMS. You can configure various LDAP
server settings from
gss.properties.
Original comment by past...@gmail.com
on 12 May 2010 at 11:02
Original comment by past...@gmail.com
on 28 May 2010 at 8:41
Original issue reported on code.google.com by
chensc...@gmail.com
on 16 Feb 2010 at 11:27