« Home | Setting up Asterisk IPKall and A2BillingIt took qu... » | AOP and appfuseI ran into some problems trying to ... » | Paypal Gateway for AppfuseI implemented a paypal g... » | Appfuse and ServletsI needed to use a servlet, in ... » | I spent the better part of this afternoon putting ... » | Ebay and SkypeRecently there have been lots of dev... » | Callback Systems »

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
$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!