Installing opentaps on JBoss

本文档详细介绍了使用Ant脚本将OpenTaps应用程序打包并部署到JBoss应用服务器的过程,包括配置数据源、SSL及启动脚本等内容。推荐在开发或测试环境中使用自动化任务进行部署,并提供了具体步骤来实现这一过程。

Contents

Introduction

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.xml file.

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 opentaps to JBoss 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

  1. Download and install jboss-4.2.2.GA.zip from jboss.org at http://www.jboss.org/jbossas/downloads
  2. Download and install MySQL
  3. Download the opentaps
  4. Setup MySQL for opentaps: Create opentaps database in MySQL, and load opentaps application data to the database

Packaging Opentaps

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

2. Change the connection-url, user-name, and password in ${opentaps.home}\framework\appserver\templates\jboss422\datasources\mysql-ds.xml to point to the opentaps database

3. Locate the system property -Dofbiz.home in ${opentaps.home}\framework\appserver\templates\jboss422\misc\run.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-jboss

Configuring JBoss

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.

Depolying opentaps

Simply copy the ${opentaps.home}\build\opentaps directory into ${JBOSS_HOME}\server\default\deploy.

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-jboss

Starting opentaps

Finally to start JBoss app server under Windows

 ${JBOSS_HOME}\bin\run.bat

or under Unix

 ${JBOSS_HOME}\bin\run.sh

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

<!-- Saved in parser cache with key mediawiki:pcache:idhash:534-0!1!0!!en!2! edit="0" and timestamp 20081202102652 -->
移植到jboss上时必须得把du给close掉,ofbiz里本身也有地方没有close。tomcat不需要
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值