View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

Deploy Openbravo ERP to JBoss


Contents

Overview

This is my findings when deploying Openbravo ERP to JBoss, and also any fixes I have done to get it working nicer.

This is in relation to Openbravo ERP 2.40.

First deployment

If you try and deploy the openbravo.war file to JBoss, it will complain about being unable to write to a log file.

### will place log extract here ###

There are also logged WARN messages:

2008-12-06 20:20:51,578 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.openbravo.erpWindows.OutgoingShipment.Shipmentoutline
2008-12-06 20:20:51,583 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.openbravo.erpCommon.ad_callouts.ComboReloads501
2008-12-06 20:20:51,587 WARN  [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE] Cannot load servlet class: org.openbravo.erpCommon.ad_reports.ReportGLItems

Fixes

Log location

build.xml includes a log.path that we set.

It is currently being set to

${jakarta.base}/logs

I have added a quick condition to the build.xml file

<condition property="log.path" value="${jboss.base}/logs" else="${jakarta.base}/logs">
  <and>
    <equals arg1="jboss" arg2="${servlet.container}" />
  </and>
</condition>

The snippet above checks a few extra variables I have defined within config/Openbravo.properties

log4j.lcf also includes some definitions of the log directory.

This however, is a bit more different, I am not sure how to "nicely" configure this, so I just modified the log4j.lcf file directly, and changed both log4j.appender.R.File and log4j.appender.HB.File to point to the JBoss log directory

log4j.appender.R.File=/opt/jboss/server/default/log/openbravo.log
log4j.appender.HB.File=/opt/jboss/server/default/log/openbravo_hibernate.log

Findings

I will place my findings here.

Currently, things seem to be working fine.

Retrieved from "http://wiki.openbravo.com/wiki/Deploy_Openbravo_ERP_to_JBoss"

This page has been accessed 7,543 times. This page was last modified on 12 March 2009, at 15:32. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.