You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Haris Hashim <ha...@gmail.com> on 2014/07/18 11:19:35 UTC

Deploying ofbiz on OpenShift issue with RMI

I am attempting deployment of ofbiz to OpenShift. Lots of troubleshooting
has been done. After making some progress, I am stuck at configuring

ofbiz\framework\base\config\ofbiz-containers.xml

<!-- load the naming (JNDI) server -->
    <container name="naming-container"
class="org.ofbiz.base.container.NamingServiceContainer">
        <property name="host" value="0.0.0.0"/>
        <property name="port" value="1099"/>
    </container>

The way I understand it is that Openshift does not allow 0.0.0.0 ip. Hence
this cause port bind error. And complain about port already in use (but it
s not) when simply that ip is not useable.

My question would be

1. Is it OK to disable RMI in ofbiz? Assuming that internally Ofbiz is not
using RMI and I dont plan to use RMI at all.

2. How to disable RMI?

Thanks!
Haris

Re: Deploying ofbiz on OpenShift issue with RMI

Posted by Jacopo Cappellato <ja...@hotwaxmedia.com>.
Hi Haris,

you can just remove (or comment) the <container> definition for "naming-container" from framework\base\config\ofbiz-containers.xml and do the same for the <container> definition for "rmi-dispatcher" from framework\service\config\ofbiz-component.xml

Jacopo

On Jul 18, 2014, at 11:19 AM, Haris Hashim <ha...@gmail.com> wrote:

> I am attempting deployment of ofbiz to OpenShift. Lots of troubleshooting
> has been done. After making some progress, I am stuck at configuring
> 
> ofbiz\framework\base\config\ofbiz-containers.xml
> 
> <!-- load the naming (JNDI) server -->
>    <container name="naming-container"
> class="org.ofbiz.base.container.NamingServiceContainer">
>        <property name="host" value="0.0.0.0"/>
>        <property name="port" value="1099"/>
>    </container>
> 
> The way I understand it is that Openshift does not allow 0.0.0.0 ip. Hence
> this cause port bind error. And complain about port already in use (but it
> s not) when simply that ip is not useable.
> 
> My question would be
> 
> 1. Is it OK to disable RMI in ofbiz? Assuming that internally Ofbiz is not
> using RMI and I dont plan to use RMI at all.
> 
> 2. How to disable RMI?
> 
> Thanks!
> Haris