Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple tomcat's

 
Chasee Lee
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to run two tomcats (4.0.1 and 1.3.4) on the same win2000 machine.
No matter how I change the port number in the server.xml file, the sencond won't start properly. it gives "java.net.BindException: Address in use: bind"
Please kindly give suggestions, Thanks!
 
Steve Guo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If two copies of tomcat are installed, how did you set the CATALINA_HOME?
Technically, if you installed the zip version, having two copies on the hard drive should be OK, but you have to be sure your application is in the right webapps folder.
 
Patricia Wu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On one server.xml, do a global replace.
Replace 'port="8'
to 'port="9'
and see what happens, I suppose u are only trying it for experimenting purposes.
 
Chasee Lee
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve and Patricia,
Thanks for your replys!
My problem is to integarte two web appications with different versions of Server engines of tomcat. One is an old legacy one. so iam not sure if the application would get effected if the server engine is upgraded.
Older version of tomcat doesn't have cataline_home. Anyway, we would run two seperate processes for these two copies of tomcats, and each process would have its catelinea_home or tomcat_home referring to its own installation directory respectively.

In the sever.xml's, the tcp connectors would refer to different listening ports. You are right that several defalt ports need to be changed to void conflicts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic