Vanita,If you want to run multiple OFBiz code on different ports then use
the attached patch.I Hope it would work.
On Sun, Oct 4, 2009 at 6:31 PM, Deyan Tsvetanov <
[email protected]> wrote:
> Here all the files you need to change:
>
> framework/base/config/ofbiz-containers.xml
> framework/base/config/jndi.properties
> framework/base/config/jndiservers.xml
> framework/base/config/rmi-containers.xml
> framework/service/config/serviceengine.xml
> framework/webapp/config/url.properties
>
> In branch 9.04 you are not able to change the bind interface of JNDI
> ( done in ofbiz-containers.xml ).
> There is a patch that fixes that isue:
>
> https://issues.apache.org/jira/browse/OFBIZ-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> You need to checkout ofbiz from trunk.
>
> Cheers,
> Deyan
>
>
>
> -----Original Message-----
> From: farouk alhassan <[email protected]>
> Reply-to: [email protected]
> To: [email protected]
> Subject: Re: Running multiple ofbiz code on different ports of tomcat
> Date: Sun, 4 Oct 2009 05:52:42 -0700 (PDT)
>
>
> I remember listing all the files that needed modifying with regards to
> ofbiz earlier this year. if you search the forum using this email, you may
> find the post.
>
> Farouk Alhassan
> Java Enterprise Developer
> www.faroukalhassan.com | [email protected]
> www.bespokecode.co.uk
> Contact Me
>
> --- @ WiseStamp Signature. Get it now
>
> --- On Sat, 3/10/09, James McGill <[email protected]>
> wrote:
>
> From: James McGill <[email protected]>
> Subject: Re: Running multiple ofbiz code on different ports of tomcat
> To: [email protected]
> Date: Saturday, 3 October, 2009, 23:05
>
> On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[email protected]> wrote:
>
> >
> > It didn't solved my problem.
> > Kindly,tell me where else i need to make changes?
> >
> >
>
> You will have to change various ports in framework/base/config
>
> You may want to change the bind address from 0.0.0.0 to the address of a
> particular interface in ofbiz-containers.xml
> and then change various ports for the connectors in that file. (For
> instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).)
>
> I think there's also a JNDI port (1099) and a change here probably requires
> corresponding changes elsewhere.
>
> Personally, I think it's a better bet to use Apache as the front-end and
> redirect on a per-URL basis to a single appserver config.
> There are many benefits from using mod-proxy+mod-rewrite or AJP.
>
> We have several test / devel configurations of OFBiz, and use Xen VM's on
> CentOS to manage them. Then it's just a simple
> ProxyPass / Location config in Apache to give them outside names, and we
> can
> do stuff like host-based authentication, and it's easy to move things
> around.
>
>
> --
> James McGill
> Phoenix AZ
>
>
>
>
>
--
Anil Soni
+91-9930302283cell
Index: framework/base/config/ofbiz-containers.xml
===================================================================
--- framework/base/config/ofbiz-containers.xml (revision 643361)
+++ framework/base/config/ofbiz-containers.xml (working copy)
@@ -34,7 +34,7 @@
<!-- load the naming (JNDI) server -->
<container name="naming-container"
class="org.ofbiz.base.container.NamingServiceContainer">
- <property name="port" value="1099"/>
+ <property name="port" value="1098"/>
</container>
<!-- RMI Service Dispatcher -->
@@ -151,7 +151,7 @@
<property name="maxSpareThreads" value="50"/>
<property name="maxThreads" value="200"/>
<property name="minSpareThreads" value="4"/>
- <property name="port" value="8009"/>
+ <property name="port" value="8008"/>
<property name="tcpNoDelay" value="true"/>
<property name="soTimeout" value="60000"/>
<property name="tomcatAuthentication" value="true"/>
@@ -186,7 +186,7 @@
<property name="maxThreads" value="100"/>
<property name="minSpareThreads" value="4"/>
<property name="noCompressionUserAgents" value=""/>
- <property name="port" value="8080"/>
+ <property name="port" value="8088"/>
<property name="restrictedUserAgents" value=""/>
<property name="server" value=""/>
<property name="socketBuffer" value="9000"/>
@@ -224,7 +224,7 @@
<property name="maxThreads" value="100"/>
<property name="minSpareThreads" value="4"/>
<property name="noCompressionUserAgents" value=""/>
- <property name="port" value="8443"/>
+ <property name="port" value="8448"/>
<property name="restrictedUserAgents" value=""/>
<property name="server" value=""/>
<property name="socketBuffer" value="9000"/>
@@ -250,7 +250,7 @@
<!-- load BeanShell remote telnet server -->
<container name="beanshell-container"
class="org.ofbiz.base.container.BeanShellContainer">
<!-- the port below and port-1 will be opened by beanshell -->
- <property name="telnet-port" value="9990"/>
+ <property name="telnet-port" value="9998"/>
<property name="app-name" value="OFBiz"/>
</container>
</ofbiz-containers>
Index: framework/webapp/config/url.properties
===================================================================
--- framework/webapp/config/url.properties (revision 643361)
+++ framework/webapp/config/url.properties (working copy)
@@ -22,11 +22,11 @@
# HTTPS Port (Secure port)
port.https.enabled=Y
-port.https=8443
+port.https=8448
force.https.host=
# HTTP Port (Not Secure port)
-port.http=8080
+port.http=8088
force.http.host=
# Static Content URLs to make it easy to move the serving load for
static content to other machines