Hi Guys,
More of a jetty question really but, I have GeoNetwork setup and
running on Localhost:8080. This works fine. I can change it to
localhost:80, this also works fine.
My problem is, I want to be able to access it from other machines on my
network, and I can't get this to work.
I've changed the jetty.xml to:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" default="
wppgeog3"/></Set>
<Set name="port"><SystemProperty name="jetty.port"
default="8080"/></Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">5000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
</New>
</Arg>
</Call>
where wppgeog3 is the name of the machine. But for some reason I can't
access it (with http://wppgeog3 or http://wppgeog3:8080 depending on the
port used). IIS serves perfectly from that address so I know it's not a
network/firewall issue. The given URL's work when accessed from the server
itself, but not any other machine.
The geonetwork console is showing absolutely no activity when I try and
load the page from remotely. This is on a Windows 2008 R2 server, and the
Resource Monitor confirms that java.exe is listening on port 80 with TCP.
So any suggestions on how to configure jetty and geonetwork to serve to
non-localhost?
Jonathan Moules
GIS Developer.
Warwickshire Observatory,
Warwickshire County Council.
01926 412358
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
Without modifying jetty.xml, open http://localhost:8080/geonetwork, logon
with admin rights, go to Administration\System Configuration menu and in the
Host box write down the servername and save the changes.
Hi Montse,
Thanks for your suggestion, but unfortunately it didn't work. That
setting only changes the internal GeoNetwork links it seems. The jetty
server itself is still listening on http://localhost:8080 - it says so
when it starts up:
"Started SelectChannelConnector@anonymised.com:8080"
Jonathan Moules
GIS Developer.
Warwickshire Observatory,
Warwickshire County Council.
01926 412358
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
To get it to listen to any port (which is actually what Emmanuel was
suggesting I think), you simply need to remove the default attribute. So
the entire line reads:
<Set name="host"><SystemProperty name="jetty.host"/></Set>
For me this responds to either http://localhost or http://servername
requests, including over the network for the servernam requests. Hopefully
this may help someone in the future.
Jonathan Moules
GIS Developer.
Warwickshire Observatory,
Warwickshire County Council.
01926 412358
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.