Forum LAMS for Tech-Heads - General Forum: Lams deployment


 
You may request notification for Lams deployment.
Search: 

1: Lams deployment
09/01/09 12:19 PM
[ Reply | Forward ]
hi,
i have downloaded all the source code for version 2_3 from the cvs and configured the common.properties and unix.properties

and started running ANT
rebuild-db - all went ok
assemble-ear - missing libs*
deploy-ear - missing libs*
deploy-tools - missing libs*
copyfiles - missing libs*

*needed to get some libs that were missing on the lib folder (quartz-1.6.5.jar, jboss-jmx-remoting.jar, hibernate3.jar, log4j-1.2.15.jar) and then all went ok

now i deployes all the files to my jboss but now i can't start jboss
on the logs i can read:

16:23:32,294 ERROR [MainDeployer] Could not initialise deployment: file:/usr/share/jboss-4.0.2/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: /usr/share/jboss-4.0.2/server/default/${jboss.common.lib.url}; - nested throwable: (java.io.FileNotFoundException: /usr/share/jboss-4.0.2/server/default/${jboss.common.lib.url})

some problem on server/default/conf/jboss-service.xml file i replaced the file with the jboss-service.xml that the lams 2_3 installer installs and it started giving me another error...

can anyone explain what am i doing wrong ? i can't find more info on how to build from the source code... i read the entire site this last week..

i'm trying to first deploy the source code and then i will start understanding the code :)

many thanks for some help...

Posted by Marco Ramos

2: Re: Lams deployment
In response to 1 09/01/09 06:11 PM
[ Reply | Forward ]
Hi

Looks like you don't have the right jboss-service.xml - if you copied it manually from somewhere, it may contain some variables which should be filled in by Ant. So it's better if you stick with using the Ant tasks.

There's a question of whether you've checked out the source from head, or from the lams2_3_release branch.

Head is built for JBoss 5.1, and you need a copy of jboss-5.1.0.GA. This is the source for 2.4. If you've got the 2.3 source (from the branch), then you'll need a copy of jboss-4.0.2. The build process requires you to have the right copy of jboss already in place. One possibility is that you may have checked out from head, and the build tasks can't find the libraries it needs because you're using jboss4.0.2.

Posted by Jun-Dir Liew

3: Re: Re: Lams deployment
In response to 2 09/02/09 04:04 AM
[ Reply | Forward ]
hi thanks for the help..

hi have the cvs code branch 2_3

/lams_build$ cvs status -v build.xml | grep "Sticky Tag"
Sticky Tag: lams2_3 (branch: 1.79.2)

and downloaded the jboss 4.0.2 the one that work with lams 2.3, i installed the pre-compiled lams and installed and all works fine...

then i extracted the source from lams cvs branch lams2_3 and deployed one by one the

rebuild-db
assemble-ear
deploy-ear
deploy-tools
copyfiles

i did not copy any file manually, then i started jboss and the my previous post error appeared.

this is very hard, if you can point me on the right direction

thanks
marco

Posted by Marco Ramos

4: Re: Re: Re: Lams deployment
In response to 3 09/02/09 04:49 AM
[ Reply | Forward ]
Hi Marco,

I have two scripts to build LAMS from shell. The first script cvsupdate.sh just gets the latest from CVS (from the 2_3_release branch).

The compile-lams.sh copies a few configuration files (which I have previously configured (unix.properties, common.properties, insert_unix_config_data.sql). These files contain the jboss_dir, mysql users and passwords, location of directories, etc.

Then it goes thru the list and compiles LAMS accordingly.

Every time I need to do test on the branch, I just run the cvsupdate.sh and then compile-lams-sh and voila... all ready to go.

In my local file system, jboss is in /d/jboss-4.0.2/ the source is in /d/lams2. So you need to change paths accordingly.

The two scripts are attached. Hope that helps.

Thanks,

Ernie

Posted by Ernie Ghiglione

Attachments:
5: Re: Re: Re: Re: Lams deployment
In response to 4 09/02/09 08:38 AM
[ Reply | Forward ]
Thanks Ernie for the scripts
my problem was that i was working on lams2_3 tag
and after reading on your scripts is lams2_3_release

thanks a lot
i deployed it and run jboss and all works fine..


now step 2 install eclipse or something and start playing with the source code :)



Again thanks for all the help...

Posted by Marco Ramos

6: Re: Re: Re: Re: Lams deployment
In response to 4 05/22/11 07:12 AM
[ Reply | Forward ]
Hi Ernie,

I am using your script to keep in sync with lams2_3_release on Ubuntu Natty and have been successful in the installation. Thanks for the script.

I installed just the lams-jboss4_4.0.2-1_all.deb package from repository, used your cvsupdate, compile-lams scripts to assemble/deploy lams and then later parts of the postinst script from the lams2_2.3.4-1_all.deb package to conform to the links, directories and the /etc/init.d/lams2. So far no problems, as far as I can tell

Here is where I may need your assistance -- While working with the tasklist tool, I am unable to reposition the tasks up or down. I tried testing the tasklist tool on you demo server at http://moodle.lamscommunity.org/moodle2 but was unable to duplicate due to lack of access "Your current role does not allow you to view this page.". I am wondering if you could add that access to user fatiedu on the demo moodle/lams. If this request is inappropriate, then it is no problem.

Shall I create a fresh post for the Tasklist, let me know if that would be preferable.

Thanks for your help
Regards,

Here is some detail on my end for the tasklist tool, see the asterisk comment in localhost_access_log.2011-05-22.log.

localhost_access_log.2011-05-22.log
192.168.56.1 - butyut [22/May/2011:15:43:13 +0400] "GET /lams/tool/latask10/authoring/start.do?toolContentID=470&contentFolderID=ff808181301600cb0130167fbd300065 HTTP/1.1" 200 521
192.168.56.1 - butyut [22/May/2011:15:43:13 +0400] "POST /lams/tool/latask10/authoring/init.do?mode=author HTTP/1.1" 200 36799
192.168.56.1 - butyut [22/May/2011:15:43:13 +0400] "GET /lams//fckeditor//editor/fckeditor.html?InstanceName=taskList.instructions&Toolbar=Default HTTP/1.1" 304 -

*************This is where I attempted to move the tasks up or down, but there were no "POST"output in the logs for move up/down.do **************

192.168.56.1 - butyut [22/May/2011:15:43:41 +0400] "POST /lams/tool/latask10/authoring/update.do HTTP/1.1" 200 36066
192.168.56.1 - butyut [22/May/2011:15:43:41 +0400] "GET /lams/tool/latask10/clearsession.do?action=confirm&mode=author&signature=latask10&toolContentID=470&defineLater=&customiseSessionID=sessionMapID-0&contentFolderID=ff808181301600cb0130167fbd300065 HTTP/1.1" 302 -
192.168.56.1 - butyut [22/May/2011:15:43:41 +0400] "GET /lams/authoringConfirm.jsp?reEditUrl=http%3A%2F%2Flamsedu.sma%3A8080%2Flams%2Ftool%2Flatask10%2Fauthoring%2Fstart.do%3FtoolContentID%3D470%26contentFolderID%3Dff808181301600cb0130167fbd300065 HTTP/1.1" 200 1798

Posted by Afroze Fatima Abidi

7: Re: Re: Re: Re: Re: Lams deployment
In response to 6 05/22/11 01:22 PM
[ Reply | Forward ]
Here is the firebug console error output while attemting to move up the task in tasklist tool

http://lamscommunity.org/dotlrn/file-storage/view/dotlrn_fs_1266389_root_folder/dotlrn_fs_1266389_shared_folder/lstask10-error.png

Posted by Afroze Fatima Abidi

8: Re: Re: Re: Re: Re: Lams deployment
In response to 6 05/22/11 07:06 PM
[ Reply | Forward ]
Hi Afroze,

Yes, there's a bug here. I've just raised this as a dev task here:

http://bugs.lamsfoundation.org/browse/LDEV-2679

As soon as this is done, we'll release a patch. I'll keep you posted here.

Thanks,

Ernie

Posted by Ernie Ghiglione

9: Re: Re: Re: Re: Re: Re: Lams deployment
In response to 8 05/22/11 08:08 PM
[ Reply | Forward ]
Ok, thanks for the prompt reply.

I noticed Ajax code in the mix for moving that task, how are the Ajax libraries being loaded. did I miss them.

Regards,

Posted by Afroze Fatima Abidi

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum