1. Download ant tool to compile openacs source code
apache-ant-1.8.2 http://ant.apache.org/
This file does not have to be compiled, there is an ant for Windows under directory bin/
2. Download Java Runtime Environment (JRE) 5.0 generally have executable programs in the appropriate JDK
The installation directory is D:\Program files\
Setting environment variables java_home=d:\program files\java\jdk1.5.0
Download jboss4.2.2.ga jbossss4.2.2.ga http://sourceforge.net/projects/jboss/files/JBoss/
installation directory D:\Program files\
Setting environment variables jboss_home=d:\program files\jboss-4.2.2.ga
4. download mysql database
http://www.mysql.com/downloads/ Select the software for Windows.
If the second installation fails, you need to remove the
C:\Documents and Settings\All Users\Application Data\mysql Directory
5. Download the mysql-connector-java-5.1.18.tar.gz database connection tool
http://dev.mysql.com/downloads/connector/j/5.1.html
copy Mysql-connector-java-5.1.18-bin.jar to D:\Program files\jboss-4.2.2.ga\server\default\lib
6. Download openacs source code
download with svn : Https://openacs.svn.sourceforge.net/svnroot/openacs/acs
//============================================================================
Compiling openacs source code
In the build.properties change a sentence:
Jboss=e:/develop/jboss-4.2.3.ga/server/default
copy Ant to the ACS directory and create a make.bat in this directory with the content
SET Jboss_home=e:\develop\jboss-4.2.3.ga
Set Java_home= "C:\progra~1\java\jdk1.6.0_45"
Start Ant-f B.xml
Exit
Then generate the acs.ear in the dist directory
CP D:\Program Files\acs\dist\acs.ear
To D:\Program Files\jboss-4.2.2.ga\server\default\deploy
CP D:\Program Files\acs \doc\dist\ openacs-ds.xml
To D:\ProgramFiles\jboss-4.2.2.GA\server\default\deploy
CP D:\ProgramFiles\acs\doc\openacs-service.xml
To D:\Program FILES\JBOSS-4.2.2.GA\SERVER\DEFAULT\DEPLOY\JMS
Change the openacs-ds.xml file
<?xml version= "1.0" encoding= "UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>ACS</jndi-name>
<connection-url>jdbc:mysql://localhost/ACS</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>winline</user-name>
<password>winline</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
</local-tx-datasource>
</datasources>
Change penacs-service.xml
<?xml version= "1.0" encoding= "UTF-8"?>
<server>
<mbean code= "Org.jboss.mq.server.jmx.Queue" name= "Jboss.mq.destination:service=queue,name=acsqueue" >
<depends optional-attribute-name= "Destinationmanager" >jboss.mq:service=DestinationManager</depends>
</mbean>
</server>
//===============================================================================================
Enter the following command in the database Doc interface
CREATE DATABASE ACS;
GRANT all on acs.* to winline identified by ' Winline ';
//===============================================================================================
ways to start Jboss:
Create a Startjboos.bat in the jboss-4.2.2.ga\bin\ directory, with the contents of call Run.bat-b 0.0.0.0
Double-click Jboos.bat
Then visit http://192.168.1.156:8080, the page content is JBoss.
Then visit HTTP://192.168.1.156:8080/OPENACS/INDEX.JSF, which is the content for ACS
//===============================================================================================
To change the Access port method:
In fact there are many situations where you do not want to use the 8080 port, the change method is simple. To change the access port of ACS is actually to modify the port of Jboos. Method:
D:\Program Files\jboss-4.2.2.ga\server\default\deploy\jboss-web.deployer\server.xml
Enter this file, and then change the
<connector port= "8080" address= "${jboss.bind.address}" maxthreads= "+" maxhttpheadersize= "8192" Emptysessionpath= "true" protocol= "http/1.1" enablelookups= "false" redirectport= "8443" acceptcount= "100" connectiontimeout= "20000" disableuploadtimeout= "true"/>
Modify the 8080 to a different port.
----------------------------------------——————————————————————
SQL Statement Documentation:
Http://www.w3school.com.cn/sql/index.asp
JBoss Deployment Documentation
Http://www.cnblogs.com/hyddd/archive/2009/05/07/1451378.html
Openacs Related Documents
http://guangming008.blog.163.com/blog/static/120396820107214659873/
Http://sourceforge.net/apps/mediawiki/openacs/index.php?title=Main_Page
http://sourceforge.net/projects/openacs/forums/forum/758100
Windows build OPENACS Compilation environment