Forum Problems Installing LAMS: Re: Re: Re: LAMS and sakai integration problem


 
Search: 

5: Re: Re: Re: LAMS and sakai integration problem
In response to 4 06/21/07 06:10 AM
[ Reply | Forward ]
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

6: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 5 06/22/07 01:05 AM
[ Reply | Forward ]
Hi Bhavesh,

It appears that the URL being used to access LAMS is malformed.

Would you be able to post the log files from your LAMS server. A detailed guide on how to do this is available here

http://wiki.lamsfoundation.org/display/lamsdocs/Reporting+Problems+and+Creating+DEBUG+Logs

Also could you please tell me what sakai username you were using when the above error occured.

Thanks
Anthony

Posted by Anthony Sukkar

7: Re: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 6 06/23/07 02:39 AM
[ Reply | Forward ]
Hi Anthony,

I have posted the log files from my LAMS server.

The sakia username is: bhavesh
The sakai password is: bhavesh

Thanks
Vinod

Posted by Bhavesh Bhanushali

Attachments:
8: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 5 06/25/07 04:27 AM
[ Reply | Forward ]
Just to say, we are seeing something pretty similar:

ERROR: HTTP Response Code: 404, HTTP Response Message: Not Found (2007-06-25 10:32:24,095 TP-Processor3_org.lamsfoundation.lams.integrations.s
akai.logic.impl.LamstwoLogicImpl)
java.io.FileNotFoundException: http://camtools-labs.caret.cam.ac.uk/lams/services/xml/LearningDesignRepository?datetime=1182763944051&username=admin&serverId=SERVERID&serverKey=SERVERKEY&hashValue=a0cf60c42b299470f50897f93097d226c1508b63&courseId=52a9de0b-1d21-4ad2
-00b4-a9d94930590e&country=GB&lang=en&mode=2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)

Something strange going on with:

/services/xml/LearningDesignRepository ?

Posted by Daniel Parry

9: Re: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 8 06/25/07 05:11 AM
[ Reply | Forward ]
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

10: Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 9 06/25/07 07:26 AM
[ Reply | Forward ]
11: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 5 06/26/07 08:48 PM
[ Reply | Forward ]
Hi Bhavesh,

Can you please change the user information url to

http://localhost/sakai-lamstwo-tool/servlet/UserDataServlet?username=%username%×tamp=%timestamp%&hash=%hash%

Anthony

Posted by Anthony Sukkar

12: Re: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 11 06/28/07 01:52 AM
[ Reply | Forward ]
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
[ Reply | Forward ]
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
[ Reply | Forward ]
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
[ Reply | Forward ]
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
[ Reply | Forward ]
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

17: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: LAMS and sakai integration problem
In response to 16 08/14/07 12:54 AM
[ Reply | Forward ]
Hi Bhavesh,

We haven't been able to replicate this problem at all. Not using the Sakai-LAMS Demo server nor by reinstalling Sakai and LAMS from scratch again and following your instructions meticulously.

But don't take my word for it, you can try doing this in the Sakai LAMS demo site. When the "page not found" appears, what's on the LAMS logs?

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to Problems Installing LAMS