Forum Problems Installing LAMS: How to build latest LAMS from source?


 
You may request notification for How to build latest LAMS from source?.
Search: 

1: How to build latest LAMS from source?
04/28/09 07:54 AM
[ Reply | Forward ]
Please tell me how can i build latest version of LAMS from source? I've got projects from CVS with "lams2_3" tag as described here (http://wiki.lamsfoundation.org/display/lams/Building+LAMS),but now it's not so clear to me how to go on. Should i install JBOSS and MySQL separately or i can "upgrade" 2.2 version and continue using wampserver?

Will be very appreciate for advice.
Sincerely, Alexander

Posted by Alex Lifanov

2: Re: How to build latest LAMS from source?
In response to 1 04/28/09 08:29 AM
[ Reply | Forward ]
Hi Alexander!

Here's a condensed guide to building lams, hope it helps:

1. Install MySQL
2. Unzip JBoss 4.0.2
3. Download lams source
4. Configure common.properties with your osName (windows or unix), database details
5. Configure windows.properties or unix.properties with the path to where you unzipped jboss
6. Create a database 'lams', and a user to access it
7. Build LAMS by:
shell> cd lams_build
shell> ant rebuild-db
shell> ant assemble-ear
shell> ant deploy-ear
shell> ant copyfiles
shell> ant deploy-tools
8. Start LAMS by double clicking /path/to/jboss/bin/run.bat or executing /path/to/jboss/bin/run.sh
9. If you run into an OutOfMemory error on startup, you probably need to increase the memory settings in run.bat or run.conf (Windows/Unix respectively) - see http://wiki.lamsfoundation.org/display/lamsdocs/Troubleshooting#Troubleshooting-javax.servlet.ServletException%3APermGenspace for more info
10. Access LAMS by going to http://localhost:8080/lams

Posted by Jun-Dir Liew

3: Re: Re: How to build latest LAMS from source?
In response to 2 04/29/09 05:05 AM
[ Reply | Forward ]
Jun-Dir, thank you very much!

I got the following projects from CVS with "lams2_3" tag:
lams_admin
lams_build
lams_central
lams_common
lams_contentrepository
lams_learning
lams_monitoring
lams_tool_chat
lams_tool_deploy
lams_tool_forum
lams_tool_gmap
lams_tool_lamc
lams_tool_laqa
lams_tool_larsrc
lams_tool_nb
lams_tool_notebook
lams_tool_sbmt
lams_tool_scribe
lams_tool_survey
lams_tool_task
lams_tool_vote
lams_www
lams_gradebook
lams_tool_spreadsheet
lams_tool_daco
lams_tool_wiki
lams_tool_images

Then i made deployment. JBOSS starts, but i can't access LAMS:(

/bin/run.bat said:
2009-04-29 14:42:25,375 ERROR [MainDeployer] could not start deployment: file:/C
:/jboss-4.0.2/server/default/deploy/lams.ear/
org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.2/server/defaul
t/tmp/deploy/tmp6657563649172545338lams-admin-exp.war/ deployment failed
...
...
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e081b33c { url=file:/C:/jboss-4.0.2/server/d
efault/deploy/lams.ear/lams-admin.war }
deployer: org.jboss.web.tomcat.tc5.Tomcat5@1f7cdc7
status: Deployment FAILED reason: URL file:/C:/jboss-4.0.2/server/default/tmp/
deploy/tmp6657563649172545338lams-admin-exp.war/ deployment failed
state: FAILED
...
...
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=lams-admin.war,id=-528370884
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.2/ser
ver/default/tmp/deploy/tmp6657563649172545338lams-admin-exp.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=lams-admin.war,id=-528370884
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.2/ser
ver/default/tmp/deploy/tmp6657563649172545338lams-admin-exp.war/ deployment failed

Will be very appreciate for any help!
Sincerely,
Alexander

Posted by Alex Lifanov

4: Re: Re: Re: How to build latest LAMS from source?
In response to 3 04/29/09 05:08 AM
[ Reply | Forward ]
Can you attach or email the full server.log? The root cause is higher up in the file.

Posted by Jun-Dir Liew

5: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 4 04/29/09 06:36 AM
[ Reply | Forward ]
Jun-Dir, i sent you logs on email.

I saw a following mysql error there, repeated couple of times:

Error running SQL at statement number 1 "ALTER TABLE lams_user ADD COLUMN timezone TINYINT"

and

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Duplicate column name 'timezone'

and this:

2009-04-29 14:42:15,218 ERROR [com.tacitknowledge.util.migration.jdbc.WebAppJNDIMigrationLauncher] java.lang.RuntimeException: Migration exception caught during migration

and this one in the end:

ERROR [org.apache.catalina.core.StandardContext] Error listenerStart
2009-04-29 14:42:25,343 ERROR [org.apache.catalina.core.StandardContext] Context [/lams/admin] startup failed due to previous errors

Posted by Alex Lifanov

6: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 5 04/29/09 06:52 AM
[ Reply | Forward ]
Thanks for that - problem is a file was accidentally checked into the branch. If you check out the latest for the branch it should be fine.

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 6 04/29/09 07:10 AM
[ Reply | Forward ]
I see!
What project should i check for the rigth version of file?

Thanks, Alexander

Posted by Alex Lifanov

8: Re: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 7 04/29/09 07:15 AM
[ Reply | Forward ]
lams_common - in src/java/org/lamsfoundation/lams/dbupdates, patch0017_updateFrom23.sql shouldn't be there. You can just delete that file and recompile.

If you update the whole project from cvs, it's best to update the others as well - there are probably dependencies.

Posted by Jun-Dir Liew

9: Re: Re: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 8 04/29/09 09:00 AM
[ Reply | Forward ]
Now it's ok, thank you very much!

Posted by Alex Lifanov

10: Re: Re: Re: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 9 04/29/09 10:19 AM
[ Reply | Forward ]
Alexander,

As we are getting closer to release, LAMS 2.3 might change daily. So keep an eye on the LAMS fisheye application so you can keep track of what it is being added to the LAMS 2.3 release

You might also want to watch for new bugs/task for the LAMS 2.3 release on our jira (bug/task tracker).

If you have a chance to help us test 2.3 the installers in about a week, that'll be really helpful as well! :-)

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 10 04/30/09 04:08 AM
[ Reply | Forward ]
Thank you very much!

Will be happy to help in testing.

Please tell me will "temp_moodle_dev" project be updated for LAMS 2.3 version or they are compatible? And what about Moodle 1.9.4 integration?

Sincerely,
Alexander.

Posted by Alex Lifanov

12: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: How to build latest LAMS from source?
In response to 11 04/30/09 05:32 PM
[ Reply | Forward ]
Hi Alexander,

Thanks for volunteering for testing.

Here's the latest unix installer (~45MB). Remember this is a testing release, so things might fail and please avoid using it with real teaching/production.

We have tested these installer in all these platforms so if you have problems, have a look at the installation steps in any of them as they will help if you get stuck.

Additionally after you have installed it, see if you can go thru the lists of tests and let us know if you have any problems.

Thanks,

Ernie

Posted by Ernie Ghiglione

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