This is not a problem of portoffset. If you use eg

ant start -Dportoffset=1

you should see something like
[java] 2015-01-19 12:19:49,247 |main |CatalinaContainer |I| Connector AJP/1.3 @ 8010 - not-secure [org.apache.coyote.ajp.AjpProtocol] started. [java] 2015-01-19 12:19:49,247 |main |CatalinaContainer |I| Connector HTTP/1.1 @ 8081 - not-secure [org.apache.coyote.http11.Http11Protocol] started. [java] 2015-01-19 12:19:49,247 |main |CatalinaContainer |I| Connector HTTP/1.1 @ 8444 - secure [org.apache.coyote.http11.Http11Protocol] started.
in your log

Your error is the syntax, it's -Dportoffset= and not -portoffset=

See http://docs.oracle.com/javase/jndi/tutorial/beyond/env/source.html#SYS

Jacques

Le 19/01/2015 11:27, Anchit Jindal a écrit :
Hi All

I am testing something for that i have to run two ofbiz simultaneously on a
machine. For that i found that i can run these by using *portoffset*
command. So i run this ./tools/startofbiz.sh start ­-portoffset=1000 it
changes admin port but fails to change naming-container port and gives
following error

org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.base.container.NamingServiceContainer (Unable to locate naming
service (Port already in use: 1099; nested exception is:
        java.net.BindException: Address already in use))
        at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:239)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:343)
        at org.ofbiz.base.start.Start.start(Start.java:369)
        at org.ofbiz.base.start.Start.main(Start.java:136)
org.ofbiz.base.container.ContainerException: Unable to locate naming service
(Port already in use: 1099; nested exception is:
        java.net.BindException: Address already in use)
        at
org.ofbiz.base.container.NamingServiceContainer.start(NamingServiceContainer.java:85)
        at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:343)
        at org.ofbiz.base.start.Start.start(Start.java:369)
        at org.ofbiz.base.start.Start.main(Start.java:136)


can anybody tell me how to fix this except manually changes the port number.



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Running-simultaneous-two-ofbiz-give-Port-already-used-exception-after-using-Portoffset-command-in-la-tp4661972.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Reply via email to