Forum Problems Installing LAMS: Lams-Sakai Integration


 
You may request notification for Lams-Sakai Integration.
Search: 

1: Lams-Sakai Integration
11/29/05 11:49 AM
[ Reply | Forward ]
Okay, i've spent most of today trying to set this up etc.
Currently i have a working Sakai 2.0.1 installation on this machine, at address http://localhost:8080/portal. I also have a working LAMS installation on this same machine, at address http://localhost:8888/lams. I have followed all the instructions within http://lamsfoundation.org/integration/sakai2/ to the best of my knowlege but i still can not get it to work fully.

When accessing the mercury site sakai.lams is listed, clicking produces a blank page, however when logged in do not see the "admin menu" on top. Equally this applied if i add the LAMS tool to a worksite.

I have modified sakai.properties and the ext_server_org_map to include, the following:

sakai.properties
lams.serverId = lamssvr1
lams.serverKey = pleasework
lams.serverAddr = http://localhost:8888/lams/

mysql

insert into ext_server_org_map (serverid, serverkey, servername, serverdesc, prefix, serinfo_url, timeout_url, disabled, orgid) values ('lamssvr1', 'pleasework', 'Server1', Lams server 1', 'TLE', 'http://localhost:8080/portal/sakai-lams-plugin/servlet/UserDataServlet?uid=%username%&ts=%timestamp%&hash=%hash%', 'http://localhost:8080/portal/', 0, 1020);

Nothing obvious show in any of the logs in which i have looked ( i don't necessarily know where i should be looking). I'm open to any suggestions as to what to do now, if you know of anything which may fix the problem or if i've done something else wrong, please let me know.

Regards

Matt

Posted by Matt Saunders

2: Re: Lams-Sakai Integration
In response to 1 11/29/05 06:31 PM
[ Reply | Forward ]
Hi Matt,

> When accessing the mercury site sakai.lams is listed, clicking produces a blank page, however when logged in do not see the "admin menu" on top. Equally this applied if i add the LAMS tool to a worksite.

I assume you login as admin right?

>sakai.properties
>lams.serverId = lamssvr1
>lams.serverKey = pleasework
>lams.serverAddr = http://localhost:8888/lams/

Try change the value of lams.serverAddr to http://localhost:8888

Cheers
Anthony

Posted by Anthony Xiao

3: Re: Lams-Sakai Integration
In response to 1 11/30/05 04:10 AM
[ Reply | Forward ]
AAARGH, i've come into work this morning, to find the machine i was using is constantly rebooting. Serves me right for testing it on windows i suppose. I'll give that a try, once i've reinstalled everything. Again.

Matt

Posted by Matt Saunders

4: Re: Re: Lams-Sakai Integration
In response to 3 11/30/05 09:53 PM
[ Reply | Forward ]
Matt,

You might want to have a look at this thread as well:

http://lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message%5fid=104875

Hopefully your machine is not giving you too much trouble :-)

Ernie

Posted by Ernie Ghiglione

5: Re: Lams-Sakai Integration
In response to 1 12/01/05 01:05 AM
[ Reply | Forward ]
Hi Matt,

There is a new version of Sakai-LAMS available at http://www.lamsfoundation.org/integration/sakai2/

There is an error in the README file on the user data callback URL. It should be http://<sakai_server>/sakai-lams-tool/servlet/UserDataServlet?uid=%username%&ts=%timestamp%&hash=%hash%

So you might need to update your ext_server_org_map table in LAMS


Anthony

Posted by Anthony Xiao

6: Re: Lams-Sakai Integration
In response to 1 12/01/05 10:53 AM
[ Reply | Forward ]
Okay, i got the machine back up and running, turns out it was a dodgy stick of ram causing windows to corrupt itself. Have now reinstalled everything again (on a separate partition this time)

I have followed the new instructions (after spending ages trying to see what the difference in the userinfo_url was, then realising i was looking at a cached page).

The sakai.lams tool still shows in mercury, but i still do not see the admin menu. Each product works on their own.

On investigating the logs, i didn't know quite what i was looking for so i've uploaded them to my shared files.

Thank you for all your help so far.

Matt

Posted by Matt Saunders

7: Re: Lams-Sakai Integration
In response to 1 12/01/05 09:18 PM
[ Reply | Forward ]
This looks pretty sus (sakai log)

ERROR: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener (2005-12-01 16:27:23,203 Thread-1_org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-lams-tool])
java.lang.UnsupportedClassVersionError: org/lamsfoundation/ld/integration/sakai/jsf/LamsMethodComponent (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)

Posted by Jun-Dir Liew

8: Re: Lams-Sakai Integration
In response to 1 12/01/05 11:42 PM
[ Reply | Forward ]
I'm looking at sakai_stdout_20051201.log it looks like Sakai have some problem loading the lams-sakai classes

java.lang.UnsupportedClassVersionError: org/lamsfoundation/ld/integration/sakai/jsf/LamsMethodComponent (Unsupported major.minor version 49.0)

Which java version are you using?

Anthony

Posted by Anthony Xiao

9: Re: Lams-Sakai Integration
In response to 1 12/02/05 01:19 AM
[ Reply | Forward ]
Hi Matt,

The new sakai-lams-tool.war uploaded yesterday had some JDK1.5 binaries in it. I must have tested the war file while running Sakai with JDK1.5 yesterday.

I compiled it a few time today using JDK1.4 but it still has JDK1.5 class files. Apparently Maven is caching the class files. After I removed my Maven caches and recompile everything, it works now.

This has taught me to be very careful when you are using 2 JDK versions on the same machine. :)

I've sent the latest binary to Ernie, he will put the latest binary on http://www.lamsfoundation.org/integration/sakai2/ later.

Anthony

Posted by Anthony Xiao

10: Re: Lams-Sakai Integration
In response to 1 12/02/05 08:03 AM
[ Reply | Forward ]
Thanks for your help Anthony.

Ernie, could you let me know when you have uploaded the latest file

Thanks

Matt

Posted by Matt Saunders

11: Re: Re: Lams-Sakai Integration
In response to 10 12/02/05 08:14 AM
[ Reply | Forward ]
Hi Mat,

It's up now:

http://www.lamsfoundation.org/integration/sakai2/sakai-code/sakai-lams-tool.war

d315e87c955fa504e794220904893d93 sakai-lams-tool.war

Thanks

Ernie

Posted by Ernie Ghiglione

12: Re: Re: Re: Lams-Sakai Integration
In response to 11 12/02/05 09:23 AM
[ Reply | Forward ]
Eek, i'm still getting the same error

java.lang.UnsupportedClassVersionError: org/lamsfoundation/ld/integration/sakai/jsf/LamsMethodComponent (Unsupported major.minor version 49.0)

I have re-downloaded the lams-sakai-tool.war and checked the md5 against that in your post.

I am using Java 1.4.2.

I'm stumped.

Matt

Posted by Matt Saunders

13: Re: Lams-Sakai Integration
In response to 1 12/04/05 09:02 PM
[ Reply | Forward ]
Hi Matt,

I've downloaded a util called DumpClassVersions @ http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version-p2.html

I redownload the sakai-lams.war file that Ernie uploaded to check the version of each java class

this is the output from DumpClassVersions

46.0 1.2 LearningSessionManager.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LDRepositoryServiceLocator.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LearningSessionManagerService.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LDRepositoryService.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 UserManager.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 SimpleLearningDesignVO.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 UserManagementServiceSoapBindingStub.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 UserManagerServiceLocator.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LearningDesignServiceSoapBindingStub.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 UserManagerService.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LearningSessionServiceSoapBindingStub.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LearningSessionManagerServiceLocator.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 LDRepository.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/lamsws/
46.0 1.2 Constants.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/
46.0 1.2 ConfigurationException.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/
46.0 1.2 CSVUtil.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/util/
46.0 1.2 LamsServiceUtil.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/
46.0 1.2 LamsSecurityUtil.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/
46.0 1.2 LamsConfiguration.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/
46.0 1.2 SequenceDAO.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/dao/
46.0 1.2 SequenceDAOHibernate.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/dao/hibernate/
46.0 1.2 SequenceEntryListController.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/controller/
46.0 1.2 SequenceActionController.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/controller/
46.0 1.2 SequenceEntryController.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/controller/
46.0 1.2 LamsLearningDesignListServlet.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/servlet/
46.0 1.2 LamsActionRequestServlet.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/servlet/
46.0 1.2 UserDataServlet.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/servlet/
46.0 1.2 ShowSequenceTag.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 ShowSequenceComponent.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 LamsMethodTag.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 LamsMethodRender.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 ShowSequenceRender.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 LamsMethodComponent.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/jsf/
46.0 1.2 SequenceForm.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/data/
46.0 1.2 LearningDesign.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/data/
46.0 1.2 Sequence.class file:/D:/tmp/sakai-lams-tool/WEB-INF/classes/org/lamsfoundation/ld/integration/sakai/data/
-----------------------------------
36 class(es) examined:
min version: 46.0 1.2
max version: 46.0 1.2

It looks like all the classes are compiled with version 46.0 I think it equals to JDK1.2.

So I'm not sure why you are getting "Unsupported major.minor version 49.0" exception. I believe version 49.0 is JDK 1.5

Did you make sure you delete the sakai-lams folder in your sakai webapps directory?

Regards
Anthony

Posted by Anthony Xiao

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