Multiple services on Tomcat

From GEANT2-JRA1 Wiki

In case you need to run Tomcat alongside other services which use some of the same ports follow theese steps:

  • Download and install in separate location second instance ofTomcat and Axis. The rest of this document assumes that Tomcat full directory name of that second installation is under $TOMCAT e.g./usr/share/tomcat.
  • Open $TOMCAT/conf/server.xml file and edit connector port property in order to change from the default 8080 port to another one of your choice. The rest of this document assumes that Tomcat will run on port 8090.
<Connector port="8090"
  • In the same file change the following line in order to change the port used for shutting down. By default, Tomcat uses port 8005 for shut down. The rest of this document assumes that Tomcat will shut down using port 8091.
<Server port="8091" shutdown="SHUTDOWN" debug="0">
  • Open the file $PERFSONAR_LS/ant/const.properties and alter the following line to correspond with your different port number
# the port to connect to
target.port=8090
### JUnit testing Lookup Service
ls.test.server=http://hostname:8090/axis/services/LookupService

Back to LS installation guide

Personal tools