My project has 2 web modules. I need to run them at the same time, using Tomcat (v5.5).
My IntelliJ (v6.05) isn't smart enough to understand that has to use different ports when running multiple instances of Tomcat, so I tried to do the dirty work manually, but without success:
I created a copy of catalina.bat, that points to a different server.xml where I changed the default ports 8005 and 8080 to something other.
I linked my copy of catalina.bat to one of the 2 web modules' running configuration.
Now it's time to run my 2 web modules.
I start the first one, with the default catalina.bat; all it's fine.
I try to start the second module, IntelliJ says "Address localhost:8080 is already in use". That's true, it's in use, but I've configured the application to start on port 8081! No way to make it work this way...
Ok, 2nd try.
I start the second module, the one configured to run with the alternative catalina.bat. It starts, and it's running on the alternative port, great!
Time to start the first module, the one on the default 8080 port.... It starts!!!
Everything seems ok but now, from the browser I can only access the application on the default 8080 port, and there's no way to access the application on the alternative port...
I can't find a solution, how can I concurrently run 2 web modules using the same Tomcat installation?