Forum Problems Installing LAMS: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?


 
Search: 

15: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 2 06/29/09 03:11 PM
[ Reply | Forward ]
I am trying to build this based on 2.3

Trying to build the first adapter

-bash-3.2# cd moodle/lams_tool_mdlassignment/
-bash-3.2# ant deploy-tool
Buildfile: build.xml

generate-hbm-files:
    [echo] Building hbm.xml files using XDoclet
[hibernatedoclet] - Running <hibernate/>
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentUser.
[hibernatedoclet]    org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentUser
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentSession.
[hibernatedoclet]    org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentSession
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignment.
[hibernatedoclet]    org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignment

clean-build:
    [mkdir] Created dir: /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/build/classes/java
    [mkdir] Created dir: /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/build/classes/test/java
    [mkdir] Created dir: /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/build/lib
    [mkdir] Created dir: /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/build/deploy

compile-java:
    [javac] Compiling 30 source files to /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/build/classes/java
    [javac] /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/src/java/org/lamsfoundation/lams/tool/mdasgm/service/IMdlAssignmentService.java:31: cannot find symbol
    [javac] symbol  : class ExtServerToolAdapterMap
    [javac] location: package org.lamsfoundation.lams.integration
    [javac] import org.lamsfoundation.lams.integration.ExtServerToolAdapterMap;
    [javac]                                          ^
    [javac] /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/src/java/org/lamsfoundation/lams/tool/mdasgm/service/IMdlAssignmentService.java:201: cannot find symbol
    [javac] symbol  : class ExtServerToolAdapterMap
    [javac] location: interface org.lamsfoundation.lams.tool.mdasgm.service.IMdlAssignmentService
    [javac]    public List<ExtServerToolAdapterMap> getMappedServers();
    [javac]                ^
    [javac] /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/src/java/org/lamsfoundation/lams/tool/mdasgm/service/MdlAssignmentService.java:56: cannot find symbol
    [javac] symbol  : class ExtServerToolAdapterMap
    [javac] location: package org.lamsfoundation.lams.integration
    [javac] import org.lamsfoundation.lams.integration.ExtServerToolAdapterMap;
    [javac]                                          ^
    [javac] /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/src/java/org/lamsfoundation/lams/tool/mdasgm/service/MdlAssignmentService.java:705: cannot find symbol
    [javac] symbol  : class ExtServerToolAdapterMap
    [javac] location: class org.lamsfoundation.lams.tool.mdasgm.service.MdlAssignmentService
    [javac]    public List<ExtServerToolAdapterMap> getMappedServers() {
    [javac]                ^
    [javac] /root/lams-moodle/tool_adapters/moodle/lams_tool_mdlassignment/src/java/org/lamsfoundation/lams/tool/mdasgm/web/actions/AdminAction.java:13: cannot find symbol
    [javac] symbol  : class ExtServerToolAdapterMap
    [javac] location: package org.lamsfoundation.lams.integration
    [javac] import org.lamsfoundation.lams.integration.ExtServerToolAdapterMap;


I am not a java programmer so I am not sure where to look.

Posted by Dave Bauer

16: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 15 06/29/09 04:59 PM
[ Reply | Forward ]
Dave,

I think you need to put the lams_tool_mdlassignment and all the other lams_tool_mdlX at the same level as all the other lams_tool_X lams tools.

Try that and that would probably work.

Ernie

Posted by Ernie Ghiglione

18: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 16 06/29/09 05:49 PM
[ Reply | Forward ]
Hi Ernie,

Can you be more specific?

What does "at the same level" mean?

Do I need to checkout the entire lams 2.3 source?

Posted by Dave Bauer

19: Re: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 18 06/29/09 05:56 PM
[ Reply | Forward ]
Sorry, I have spent too much time in Spain already :-)

The lams_tools_mdlX folders, they have to be in the same subdirectory level as the other folders.

$ ls -la

drwxr-xr-x  23 ernieg  staff    782 28 Jun 02:14 lams_build
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:06 lams_central
drwxr-xr-x  16 ernieg  staff    544 19 Jun 17:34 lams_common
drwxr-xr-x  22 ernieg  staff    748 28 Jun 02:06 lams_contentrepository
drwxr-xr-x  12 ernieg  staff    408 28 Jun 02:07 lams_gradebook
drwxr-xr-x  16 ernieg  staff    544 28 Jun 02:07 lams_learning
drwxr-xr-x  16 ernieg  staff    544 28 Jun 02:07 lams_monitoring
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:12 lams_tool_assessment
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:09 lams_tool_chat
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:11 lams_tool_daco
drwxr-xr-x  12 ernieg  staff    408 19 Jun 17:34 lams_tool_deploy
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:11 lams_tool_dimdim
drwxr-xr-x  19 ernieg  staff    646 28 Jun 02:09 lams_tool_forum
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:11 lams_tool_gmap
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:11 lams_tool_images
drwxr-xr-x  14 ernieg  staff    476 19 Jun 17:34 lams_tool_lamc
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:15 lams_tool_laqa
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:09 lams_tool_larsrc
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:36 lams_tool_mdlassignment
drwxr-xr-x  13 ernieg  staff    442 19 Jun 17:38 lams_tool_mdlchat
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:36 lams_tool_mdlchoice
drwxr-xr-x  13 ernieg  staff    442 19 Jun 17:39 lams_tool_mdlforum
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:37 lams_tool_mdlglossary
drwxr-xr-x  13 ernieg  staff    442 28 Jun 05:36 lams_tool_mdllesson
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:37 lams_tool_mdlquiz
drwxr-xr-x  13 ernieg  staff    442 28 Jun 05:36 lams_tool_mdlscorm
drwxr-xr-x  13 ernieg  staff    442 28 Jun 04:46 lams_tool_mdlwiki
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:12 lams_tool_mindmap
drwxr-xr-x  16 ernieg  staff    544 28 Jun 02:09 lams_tool_nb
drwxr-xr-x  16 ernieg  staff    544 28 Jun 02:10 lams_tool_notebook
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:21 lams_tool_pixlr
drwxr-xr-x  17 ernieg  staff    578 28 Jun 02:15 lams_tool_sbmt
drwxr-xr-x  15 ernieg  staff    510 28 Jun 02:10 lams_tool_scribe
drwxr-xr-x  13 ernieg  staff    442 28 Jun 02:11 lams_tool_spreadsheet
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:10 lams_tool_survey
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:10 lams_tool_task
drwxr-xr-x  14 ernieg  staff    476 28 Jun 02:12 lams_tool_videorecorder
...

Note that instead of being in the tool_adapters/moodle/lams_tool_mdlassignment/, you just get rid of the tool_adapters/moodle folder and put them all in the same subdirectory.

Does that make sense?

Posted by Ernie Ghiglione

20: Re: Re: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 19 06/29/09 06:05 PM
[ Reply | Forward ]
Not really, I don't HAVE any of those folders :)

So do I need to check out the entire lams 2.3 tree? It is not specified in the instructions here.

Posted by Dave Bauer

17: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 15 06/29/09 05:44 PM
[ Reply | Forward ]
So the library containing
: class ExtServerToolAdapterMap
[javac] location: package org.lamsfoundation.lams.integration
[javac] import org.lamsfoundation.lams.integration.ExtServerToolAdapterMap;
[javac]

does not exist anywhere in my checkout of the code specified, or in my lams 2.3 install. Did I miss a step of something to checkout?

Posted by Dave Bauer

21: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 17 06/29/09 06:09 PM
[ Reply | Forward ]
Hi Dave,

The ExtServerToolAdapterMap code is actually new to 2.3.1, so you'll need to check out from the lams2_3_1 tag to get the latest for both tool adapter and core. This new class was part of a feature to allow multiple integrated moodle servers to use the tooladapter.

Try checking out from the lams2_3_1 tag.

Luke

Posted by Luke Foxton

22: Re: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 21 06/29/09 07:03 PM
[ Reply | Forward ]
Ok one more dumb question then I'll go away for a bit and work.

If I checkout the lams 2.3.1 tag, is there other stuff in there besides the external tool adapter I need?

Perhaps another solution would have been to checkout the moodle adapters from an earlier date instead of HEAD?

Posted by Dave Bauer

23: Re: Re: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 22 06/29/09 07:11 PM
[ Reply | Forward ]
Yes,

You need at least the lams_build project, which contains all the core jar files needed to compile the other projects.

Check out this page for more info about building lams:
http://wiki.lamsfoundation.org/display/lams/Building+LAMS

Basically, before building you will need to edit the lams_build/common.properties to make sure its configured to talk to your database, and is set to either windows or unix. You'll also need to edit the <your os type>.properties file to point the builder to the correct locations on your server.

Then you can run the tool's deploy-tool ant task and it should hopefully work.

Good luck

Luke

Posted by Luke Foxton

24: Re: Re: Re: Re: Re: Re: Re: How to use Moodle 1.9.4 activities in LAMS 2.2?
In response to 23 06/29/09 07:15 PM
[ Reply | Forward ]
Yes, I did this, checking out lams_build from HEAD.

It did not seem to work, it was missing the ExtToolAdapaterMap class which appears to be in a different module from my cvs browsing. I checked out the whole 2_3_1 tree and I'll try to build it and let you know.

Thanks for the help!

Posted by Dave Bauer

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