Tomcat Manager
I do all my development work on a Windows 2000 machine,and my production server is a fedora core 2 linux box.
With my last project I always transfered the source files to the server and compiled deployed my apps from there. This was necessary because of some path/compiler issues and because my application interfaced with a jabber server on the same box.
But one of the projects I am working with now, doesn't have those characteristics. So I want to use my ant build script to deploy my web app using the Tomcat manager web application.
Setting up the Tomcat manager however didn't work out of the box. I added the following lines to server.xml
<context path="/manager" debug="0" privileged="true" docbase="${catalina.home}/server/webapps/manager">
</context>
I kept getting 404 errors for the HTMLManagerServlet everytime I tried to access the manager.
So eventually I removed the above lines from server.xml, and added the default manager.xml file to
I do all my development work on a Windows 2000 machine,and my production server is a fedora core 2 linux box.
With my last project I always transfered the source files to the server and compiled deployed my apps from there. This was necessary because of some path/compiler issues and because my application interfaced with a jabber server on the same box.
But one of the projects I am working with now, doesn't have those characteristics. So I want to use my ant build script to deploy my web app using the Tomcat manager web application.
Setting up the Tomcat manager however didn't work out of the box. I added the following lines to server.xml
<context path="/manager" debug="0" privileged="true" docbase="${catalina.home}/server/webapps/manager">
</context>
I kept getting 404 errors for the HTMLManagerServlet everytime I tried to access the manager.
So eventually I removed the above lines from server.xml, and added the default manager.xml file to
$CATALINA_HOME/conf/Catalina/[hostname]
Then it worked.
After that the win2000 compiled classes had a java version mismatch with the fedora core box Java version.
so I set the target attribute of the javac ant task to target="1.5" (the version on the fedora core box) and recompiled/deployed all and it worked!
Post a Comment