[Geoserver-users] Changing GeoServer port + jetty

Hello

I have installed GeoServer 2.6.0 using the Windows Installer on a WIndows Server 2008. I tried then to change the GeoServer port, because the 8080 port is been used by Oracle XDB, but I did not succeed. I followed this post to change the port from 8080 to 8090 in the jetty.xml file: , and then restarted the server and the GeoServer Windows service and then tried to access the GS start page by typing http://geoserver:8090/geoserver/web/ and http://localhost:8090/ but got the same error which is connection time out! I found this post where the post author had the same problem and he/she fixed it by changing Djetty.port in startup.bat to the correct port but in my case I couldn’t find the Djetty.port and instead there is this line call “C:\Program Files (x86)\GeoServer 2.6.0\wrapper.exe” -t wrapper/wrapper.conf in the startup.bat file!

Any ideas how to solve this problem?

Best regards,
Ammar

Hi Ammar,

I had the same problem. I assume you have GeoServer installed as a service. Altering the default port in jetty.xml didn’t help because as I found out the port number is hardcoded into the service path. To change the port number Geoserver 2.1 is running on you need to do the following:

  • stop your running GeoServer 2.1.0-service
  • open regedit
  • locate the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GeoServer 2.1.0
  • modify the key entry named ImagePath. At the end of this key you will see the phrase “Djetty.port=8080” (or whatever port number you have chosen in the installer). Change this to “Djetty.port=8090”.
  • close regedit
  • restart your GeoServer 2.1.0-service. Your Geoserver installation will now run on port 8090.

Best Regards,

···

Att,

Fernando Silveira de Quadro

Senior GIS Analyst

Tel +55 48 3333 2030

fernando.silveira@anonymised.com

www.neoway.com.br

R. Patrício Farias, 131 - 3o andar | 88034-132 | Florianópolis | Santa Catarina| Brasil

2014-10-20 7:23 GMT-02:00 Ammar <ammar83_h@anonymised.com>:

Hello

I have installed GeoServer 2.6.0 using the Windows Installer on a WIndows Server 2008. I tried then to change the GeoServer port, because the 8080 port is been used by Oracle XDB, but I did not succeed. I followed this post to change the port from 8080 to 8090 in the jetty.xml file: , and then restarted the server and the GeoServer Windows service and then tried to access the GS start page by typing http://geoserver:8090/geoserver/web/ and http://localhost:8090/ but got the same error which is connection time out! I found this post where the post author had the same problem and he/she fixed it by changing Djetty.port in startup.bat to the correct port but in my case I couldn’t find the Djetty.port and instead there is this line call “C:\Program Files (x86)\GeoServer 2.6.0\wrapper.exe” -t wrapper/wrapper.conf in the startup.bat file!

Any ideas how to solve this problem?

Best regards,
Ammar


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users