|
5:
Re: Re: Re: LAMS and sakai integration problem
|
In response to 4
|
06/21/07 06:10 AM |
|
Hi,
Thanks for all the support.
We have successfully configured LAMS and sakai. The next point we have stucked is LAMS is unable to authenticate users from sakai and we get following error at sakai's console
----------
java.io.IOException: Server returned HTTP response code: 400 for URL: http://loc
alhost:8080/lams//services/xml/LearningDesignRepository?datetime=1182427701723&u
sername=65589020-3192-4e98-80e2-aadb6ecbf203&serverId=sakai&serverKey=sakai&hash
Value=e9f2ceb6a61ba9a71ca2b525072fdad0688534b5&courseId=245ebc5e-6eeb-4f3c-8044-
908f3932c328&country=US&lang=en&mode=2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at org.lamsfoundation.lams.integrations.sakai.logic.impl.LamstwoLogicImp
l.getLearningDesigns(LamstwoLogicImpl.java:378)
at org.lamsfoundation.lams.integrations.sakai.tool.jsf.LamstwoBean.proce
ssActionNew(LamstwoBean.java:273)
----------------
we have following information added in sakai.properties
lamstwo.serverId=sakai
lamstwo.serverKey=sakai
lamstwo.serverAddr=http://localhost:8080/lams/
lamstwo.requestSrc=sakai
and in LAMS through "Managed server" we have added
id:sakai
key:sakai
name:localhost
Description:sakai
prefix:sk_
organization:sakai
url:
http://localhost/sakai-lamstwo-tool/servlet/UserDataServlet?username=%username%&tamp=%timestamp%&hash=%hash%
Could you please give us some directions to fix this problems as well.
Thanks in advance!
Regards
Bhavesh R Bhanushali
Posted by Bhavesh Bhanushali
|
|
|
|
|
|
9:
Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 8
|
06/25/07 05:11 AM |
|
Anthony tells me he has had a look at the logs, and nothing obvious appears so he will need to look into it further.
One thing I did notice with Daniel's posting (so thankyou Daniel - it has been useful). Both postings have something funny at the end of the url:
country=US〈=en&mode=2
country=GB〈=en&mode=2
The " <" is where &lang should be. Does it appear this way to you in the error message on the screen?
The call in the acccess log looks okay "&country=US&lang=en&mode=2",
I'm just wondering if this might be a clue, or a red herring.
Fiona
Posted by Fiona Malikoff
|
|
|
|
|
12:
Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 11
|
06/28/07 01:52 AM |
|
Hi Anthony,
I changed the URL as suggested by you but no luck.
I am getting following message in a popup when i click "open author".
--------------
HTTP Status 502 - Login Failed - failed to fetch user info from the third party server
type Status report
message Login Failed - failed to fetch user info from the third party server
description This server received an invalid response from a server it consulted when acting as a proxy or gateway (Login Failed - failed to fetch user info from the third party server).
--------------
I hope this helps!
Thanks & Regards
Bhavesh R Bhanushali
Posted by Bhavesh Bhanushali
|
|
|
13:
Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 12
|
06/28/07 09:10 PM |
|
Bhavesh,
I think we are one step closer to solving this.
The user information url is correct. When lams is retrieving the user info from the sakai server, it is getting a 502 error.
Could you please post both the sakai and lams logs.
Also, depending on what time zone you are in, you may be able to contact me via Skype. I am located in Sydney, Australia (GMT+10).
Anthony
Posted by Anthony Sukkar
|
|
|
14:
Re: Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 13
|
06/29/07 03:00 AM |
|
Hi Anthony,
Thanks for the help. The problem got solved when i did fresh
build from the source code. Now the problem is solved for authentication but system is behaving differently.
To replicate the behaviour, please log into sakai and do following things.
1. Create a new account.
1. Log in as admin and allow access to LAMS for the new user.
2. log in as new user and access the LAMS link from left menu of sakai.
3. Access "New lesson" on LAMS screen. The system will display the workspace along with option to author.
4. Access "open author" screen that will open authoring window of LAMS in new window. Now close the window without creating any activities.
5. Accessed "open author" screen again but now the popup window shows "page not found".
6. Surprisingly when servers are restarted both Jboss and tomcat (sakai), it worked for the first time but for the second time it again showed page not found.
There are no errors displayed on both the consoles.
Could you please help us on this.
Regards
Bhavesh R Bhanushali
Posted by Bhavesh Bhanushali
|
|
|
15:
Re: Re: Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 14
|
06/29/07 04:04 AM |
|
Bhavesh,
Can I clarify one thing.
If you open the author screen, close the browser altogether (ie quit Firefox, IE, etc), open the browser and log in again, do you get the authoring window or the "page not found".
When you call LAMS the first time in a session, it has to do some extra work to log you into LAMS. That may be why we are seeing a difference between the first and second time. Restarting the browser will test this.
Fiona
Posted by Fiona Malikoff
|
|
|
16:
Re: Re: Re: Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
|
In response to 15
|
06/29/07 05:41 AM |
|
Hi Fiona,
A small correction in the steps mentioned in earlier post. Please note step 5 below.
1. Create a new account.
1. Log in as admin and allow access to LAMS for the new user.
2. log in as new user and access the LAMS link from left menu of sakai.
3. Access "New lesson" on LAMS screen. The system will display the workspace along with option to author.
4. Access "open author" screen that will open authoring window of LAMS in new window. Now close the window without creating any activities.
5. Logout and log back in. Repeat the above steps from 1 to 3.
5. Access "open author" screen again but now the popup window shows "page not found".
6. After i close the window as suggested by you and log back in on a new browser. It works. But it doesnt work if i logout and log back in the same browser instance.
Regards
Bhavesh R Bhanushali
Posted by Bhavesh Bhanushali
|
|
|