You are probably both trying to bind to port 80. Whatever server you use for rails (the passenger through the nginx / apache HTTP server, nginx + thin / mongrel, etc.) is tied to port 80, then tomcat tries to do the same and cannot.
If you are using nginx, I would configure tomcat to run on 8080 and return tomcat HTTP requests based on the host name of the URL part.
You can do this too with the apache http server with mod_proxy.
source
share