Installing opentaps on JBoss

2016-04-17 14:52:01来源:作者:开源中国人点击

Contents1 Introduction2 Pre-requirements3 Packaging Opentaps4 Configuring JBoss5 Depolying opentaps6 Starting opentapsIntroduction

The Ant scripts for JBoss deployment package opentaps applications to an exploded EAR directory which contains exploded WAR directories for the opentaps web applications, a lib directory with all the dependent libraries and resources files, as well as a META-INF directory that contains the application.xmlfile.


The scripts also provide tasks to automate the opentaps deployment to a JBoss app server. However we only recommend the use of such automated tasks for JBoss deployment under a development or testing server. Deployments to a production server should be taken more seriously. Upgrading a production application is something that should be done deliberately, and in our opinion, should be done by hand.


We will show you step-by-step on how to deploy opentapstoJBoss app server 4.2.2 in the following sections. It assumes that you are reasonably familiar with JBoss app servers, and you have already installed the MySQL database for opentaps. For details on how to use opentaps with MySQL, refer to the Wiki page at http://www.opentaps.org/index.php?option=com_content&task=view&id=37&Itemid=62


Pre-requirements
Download and install jboss-4.2.2.GA.zip from jboss.org at http://www.jboss.org/jbossas/downloads
Download and install MySQL
Download the opentapsSetup MySQL for opentaps: Create opentaps database in MySQL, and load opentaps application data to the database
PackagingOpentaps

1. Set JBOSS_HOMEandJAVA_HOMEin${opentaps.home}build-ear.properties to point to your JBoss app server and JDK installation directories


2. Change the connection-url,user-name, and passwordin${opentaps.home}frameworkappservertemplatesjboss422datasourcesmysql-ds.xml to point to the opentapsdatabase


3. Locate the system property -Dofbiz.homein${opentaps.home}frameworkappservertemplatesjboss422miscrun.bat under Windows (or run.sh for Unix) and change its value to point to the opentaps home directory


4. Package opentaps


ant -f build-ear.xml package-jbossConfiguringJBoss

Use the following Ant task to configure the datasource, SSL, and JBoss start-up scripts in JBoss app server


ant -f build-ear.xml setup-jboss

Please note this task should be called only once to configure JBoss to run openstaps before any opentaps deployment. And it shouldn't be called again next time you redeploy opentaps.


Depolyingopentaps

Simply copy the ${opentaps.home}buildopentaps directory into ${JBOSS_HOME}serverdefaultdeploy.


Alternatively you can run the following Ant task to package opentaps and install it to JBoss in one step


ant -f build-ear.xml install-jbossStartingopentaps

Finally to start JBoss app server under Windows


${JBOSS_HOME}binrun.bat

or under Unix


${JBOSS_HOME}binrun.sh

After the server is started, you should be able to access opentapsathttp://localhost:8080/.



Retrieved from"http://www.opentaps.org/docs/index.php/Installing_opentaps_on_JBoss"
移植到jboss上时必须得把du给close掉,ofbiz里本身也有地方没有close。tomcat不需要

微信扫一扫

第七城市微信公众平台