Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have been looking for this for a while and can't find the answer: when you startup geoserver a webpage is opened at localhost:8080/geoserver/web but if you have changed your port config in jetty.xml then this is the wrong address... still, when you start up geoserver opens the page at 8080, which fails now of course...

here is my question: where is this behaviour set in geoserver?

while i am at it, is it possible for geoserver to autostart?

thanks in advance

update: this is for running geoserver on an OSX Machine

share|improve this question
    
Have you tried configuring the port in $TOMCAT/conf/server.xml, because you can change the port there from 8080 to your desired port. That is at least where I changed it when I last used it, but that is a tomcat config file and not the jetty one it looks like you are using. –  dkroy Jul 29 '11 at 4:40
    
sorry if my question is not clear. i HAVE changed to port to 8088 and it works fine if i open localhost:8088/geoserver/web. the problem is that starting the server still opens localhost:8080/geo.. which now corresponds to nothing. it's annoying each time i start the map server to have to see this error instead of the webapp –  Barnabe Jul 29 '11 at 6:56

1 Answer 1

Are you running on osx? I take it you are referring to how on startup it opens the browser to the GeoServer homepage? That port is actually hardcoded and you can't change it so it is a bug. Feel free to open an issue in the bug tracker.

share|improve this answer
1  
yes I am on OSX. you can actually edit jetty.xml in contents/Resources/Java/etc/ and change the default port as below <Call name="addConnector"> <Arg> <New class="org.mortbay.jetty.nio.SelectChannelConnector"> <Set name="port"><SystemProperty name="jetty.port" default="8088"/></Set> <Set name="maxIdleTime">30000</Set> <Set name="Acceptors">2</Set> <Set name="confidentialPort">8443</Set> </New> </Arg> </Call> my install of geoserver runs on 8088 because it otherwise conflicts with port forwarding 8080. –  Barnabe Jul 29 '11 at 6:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.