2

I have installed geoserver binary and tomcat8 in /opt on centos 6.6. My problem is, I can run geoserver only when I stop the tomcat service. How do I resolve the issue and start both on booting the system.

5
  • change the port number of one or the other, or use the Geoserver.war in tomcat
    – Ian Turton
    Commented Oct 2, 2015 at 10:44
  • tomcat is not deploying the geoserver.war. how to do so?
    – Tara
    Commented Oct 2, 2015 at 13:01
  • Read the instructions
    – Ian Turton
    Commented Oct 2, 2015 at 13:16
  • Hi I got the issue resolved by editing the tomcat server.xml file changin the port no to 80 as shown below, previously it ws 8080. By doing this tomcat uses 80 and geoserver will use 8080, so the conflict is resolved <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
    – Tara
    Commented Oct 9, 2015 at 12:45
  • To start geoserver on boot goto /etc and vi rc.local and add the following(Geoserver installation folder with the startup.sh path) which specifies the JAVA_HOME and GEOSERVER_HOME for the boot up and save the file. This starts the geoserver on boot. export JAVA_HOME=/usr export GEOSERVER_HOME=/opt/geoserver/ /opt/geoserver/bin/startup.sh
    – Tara
    Commented Oct 9, 2015 at 12:55

2 Answers 2

1

Hi I got the issue resolved by editing the tomcat server.xml file changin the port no to 80 as shown below, previously it ws 8080. By doing this tomcat uses 80 and geoserver will use 8080, so the conflict is resolved

1

To start geoserver on boot goto /etc and vi rc.local and add the following(Geoserver installation folder with the startup.sh path) which specifies the JAVA_HOME and GEOSERVER_HOME for the boot up and save the file. This starts the geoserver on boot.

export JAVA_HOME=/usr export GEOSERVER_HOME=/opt/geoserver/ /opt/geoserver/bin/startup.sh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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