During startup I get: 

2009-09-26 08:46:31,905 (default-invoker-Thread-10) [
AbstractEngine.java:73 :INFO ] Loaded Service Locations :
[main-rmi=rmi://127.0.0.
1:1099/RMIDispatcher,
main-http=http://127.0.0.1:8080/webtools/control/httpService,
entity-sync-rmi=rmi://192.168.1.100:1099/RMIDispatcher,
entity-sync-http=http://192.168.1.100:8080/webtools/control/httpService,
rita-rmi=rmi://127.0.0.1:1099/RMIDispatcher, eedcc-test=http://127.
0.0.1:8080/webtools/control/httpService]

entity-sync-rmi  seems to be ok ...




-----Original Message-----
From: Deyan Tsvetanov <[email protected]>
Reply-to: [email protected]
To: [email protected]
Subject: EntitySync RMI error
Date: Sat, 26 Sep 2009 09:22:23 +0300


Hi guys,  

I'm trying to configure RMI entity sync. I'm following
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example

What I've done so far: 

1) entity-sync-rmi  to rmi://192.168.1.100:1099/RMIDispatcher

2) set RMIIF=-Djava.rmi.server.hostname=127.0.0.1
 ( as per the example ). 

3) I've imported the entity sync groups, SandJobs, etc.

However when the sync starts ( on the POS instance ) I get the following
error: 

Exception calling remote pull and report EntitySync service with name:
remotePullAndReportEntitySyncDataRmi; org.ofbiz.service.GenericServic
eException: RMI Invocation Error (Connection refused to host: 127.0.0.1;
nested exception is:
        java.net.ConnectException: Connection refused: connect)
Exception: org.ofbiz.service.GenericServiceException
Message: RMI Invocation Error (Connection refused to host: 127.0.0.1;
nested exception is:
        java.net.ConnectException: Connection refused: connect)
---- cause
---------------------------------------------------------------------
Exception: java.rmi.ConnectException
Message: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect
---- cause
---------------------------------------------------------------------
Exception: java.net.ConnectException
Message: Connection refused: connect
---- stack trace
---------------------------------------------------------------


It insists connecting to 127.0.0.1 no matter what I  type in
serviceengine.xml. 
Any help would be appreciated :)

Thanks in advance, 
Deyan 

Reply via email to