Hello Everybody,
We are currently having some problems in configurating the harvesting
mechanism. We have setup 2 geonetwork nodes within our company.
Each node had his own metadata in a database.
Node A: (windows machine)
- Desktop installation
- Jetty servlet engine (running on port 8081)
- McKoi database
Node B: (linux machine)
- Server installation
- Tomcat servlet engine (running on port 8080)
- PostgreSQL database
- Apache webserver (port 80)
Harvesting metadata from node B into node A works fine! But
harvesting metadata from node A into node B fails with this
errormessage:
2006-08-25 17:41:02 | [geonetwork sync] Searching on : geonetwork
2006-08-25 17:41:02 | [geonetwork sync] Raised exception when
executing schedule : geonetwork sync
2006-08-25 17:41:02 | [geonetwork sync] (C) Stack trace :
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at jeeves.xml.XmlRequest.execute(XmlRequest.java:136)
at org.fao.geonet.schedules.MetadataSync.exec(MetadataSync.java:194)
at jeeves.server.ScheduleManager.executeSchedule(ScheduleManager.java:190)
at jeeves.server.ScheduleManager.doJob(ScheduleManager.java:170)
at jeeves.server.ScheduleManager.run(ScheduleManager.java:143)
Firewall has been set open for port 8080 en port 8081 on both incoming
and outgoing requests to these servers.
config.xml node B:
---------------------------
<appHandler class="org.fao.geonet.Geonetwork">^M
<param value="xxx.xx.xxx.xx" name="network" />^M
<param value="255.255.255.0" name="netmask" />^M
<param value="8080" name="port" />^M
<param value="WEB-INF/lucene" name="luceneDir" />^M
<param value="2100" name="z3950Port" />^M
<param value="schema-mappings.xml" name="schemaMappings" />^M
<param value="WEB-INF/data" name="dataDir" />^M
<param value="abc" name="siteId" />^M
<param value="abcgeonetwork.thisco.eu" name="publicHost" />^M
<param value="80" name="publicPort" />^M
</appHandler>^M
<schedule name="geonetwork sync"
class=".schedules.MetadataSync" when="30 sec">
<param name="sites">
<site name="geonetwork">
<general>
<host>xxx.xx.xxx.xxx</host> (= IP of node A)
<port>8080</port>
<language>en</language>
<username></username>
<password></password>
</general>
<services>
<login>xml.user.login</login>
<logout>xml.user.logout</logout>
<search>xml.search</search>
<get>xml.metadata.get</get>
</services>
<search>
<extended>off</extended>
<help>off</help>
<relation>equal</relation>
<any />
<remote>off</remote>
<region></region>
<paper>off</paper>
<siteId>nodeAid</siteId>
</search>
<group id="1">
<privilege>view</privilege>
<privilege>download</privilege>
<privilege>dynamic</privilege>
</group>
<group id="0">
<privilege>view</privilege>
<privilege>download</privilege>
<privilege>dynamic</privilege>
</group>
</site>
</param>
</schedule>
config.xml node A:
---------------------------
<appHandler class="org.fao.geonet.Geonetwork">
<param value="xxx.xx.xxx.xxx" name="network" />
<param value="255.255.255.0" name="netmask" />
<param value="8081" name="port" />
<param value="WEB-INF/lucene" name="luceneDir" />
<param value="2100" name="z3950Port" />
<param value="schema-mappings.xml" name="schemaMappings" />
<param value="WEB-INF/data" name="dataDir" />
<param value="nodeAid" name="siteId" />
<param value="xxx.xx.xxx.xxx" name="publicHost" />
<param value="8081" name="publicPort" />
</appHandler>
Thank you,
Michael.