• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Instances of Tomcat

 
kamal kumar sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am trying to run two instances of TOMCAT in windows.Here following that i have done.

1.set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 6.0
2.set CATALINA_BASE=D:\tomcat2
3.copy conf,temp,work,logs,wepapps in tomcat2 installation directory
4.changed the port number in server.xml for tomcat 2
5.now started the tomcat home

but second instance of tomcat does'nt start.

Please help me to get rid off from this problem.

Thanks,
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the CodeRanch, Kml Sharma!
kml sharma wrote:... but second instance of tomcat does'nt start...

What problem(s) you have? Any errors etc...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you didn't change the other 4 port numbers in server.xml. Tomcat uses more than just port 8080.

But without actual error messages, that's just a guess based on what people usually miss out on.
 
kamal kumar sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

yes,i have modified all required port number in server.xml of second TOMCAT instances.
SHUTDOWN=5555
HTTP/1.1=5554
AJP/1.3=5553
CATALINA_BASE=D:\tomcat2 and copied conf,logs,webapps,work folder to this location.

for primary instance
CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 6.0

SHUTDOWN=1500
HTTP/1.1=1499
AJP/1.3=1498

after that when i start first instance ,it started as before but the for second instance when i access following url.
http://localhost:5554 the browser shows

can't establish a connection to the server at localhost:8888.

Thank you
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would seem to indicate that Tomcat is working, but the page request redirected to port 8888.

Are you using Apache web server with a Tomcat connector?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic