I'm working on my first Tomcat app. I discovered that I can invoke the manager locally with a browser (http://localhost:8080/manager/deploy...) to deploy, etc. However, this doesn't work for me when I try to deploy to other machines (the list and serverinfo functions work, but not deploy).
Is this supposed to work? (What I did was change "localhost" to "192.168.0.1".)
Is there a standard way to deploy to another computer? I see that there are ant tasks, but they invoke the same manager that is failing above, no?
It depends on how the machine is setup. Is this remote machine one that you control? My Tomcat machine is somewhere else in my network, yet the Manager and Admin consoles work just fine. I also have a personal account with jsp-servlet.com, their manager works just fine over the internet as well.
Joined: Dec 07, 2001
Thanks for the reply. Right now I have a Linux box connected by a crossover cable to a WinXP box which is doing Internect Connection Sharing and hosting Tomcat. The WinXP box is connected to the internet, and out there I have another Linux box running Tomcat. I can run apps and the manager's list and serverinfo commands on both Tomcats, but the deploy does not work on either, only on localhost. As I mentioned above, the only change I made in my deploy command was the host name.
Is my deploy command syntax wrong for connecting to remote boxes? How does it compare to yours?
I remark that I"ve never been able to get the deploy functionality to work with .war files, only with the app unzipped, as in the example above. This may indicate yet another thing I don't understand about deploying.
Well, live and learn. I learned today that if you point your browser at http://<domain>:8080/manager/html that you get a web page that lets you upload war files remotely. It can also be done using ant tasks as described in the manager docs included with Tomcat.