-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tero,
On 12/8/2009 3:38 PM, Tero Karttunen wrote: > I have something that must be a pretty standard J2EE application > server environment: I am running (at least) three Tomcat instances > sharing a common Catalina home with mod_jk load balancer in front. I hope you're using CATALINA_BASE along with that. :) > I > have not set up clustering, because my GWT-based applications maintain > state information client-side and do not utilize server-side J2EE Web > Application context sessions. This is a nice strategy that should scale very well. > In this configuration I regularly need to deploy or re-deploy new > applications to all the Tomcat instances, and I was surprised to find > out that the support for this out-of-box was quite poor. All I could > find was Tomcat Client Deployer package, and all the documentation I > could find was the chapter four in the Tomcat user guide. What is the "Tomcat user guide" and what is covered in chapter 4? > I apologize > in advance if I have missed out something; prove me wrong! Tomcat comes with a webapp called "manager" which can deploy, un-deploy, and re-deploy web applications using either the (basic) web interface provided) or a client such as wget using simple GET and POST requests. There is a "task" available for Apache ant that can do deployments for you, too. It is documented here (apologies for the URL wrapping, if any occurs): http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant > Firstly, the build.xml file does not suffice for documentation for the > ant-tasks! I had to RTFS to find out the needed parameters for the > deploy task ("localWar" and "config") You're right: the ant tasks are almost completely undocumented. Would you consider submitting a patch for the documentation? > Secondly, the example ant-script is only suitable for deploying to one > Tomcat manager instance at a time, which is a major limitation. I have > to write my own ant script for deployment to multiple manager > instances. Right. This is not an industrial-strength tool: it's just to get you by. You are welcome to script whatever your environment requires. Again, patches are welcome. > But this is not all - I am also going to need to integrate mod_jk > Status Worker ant tasks to my script, because I need to temporarily > disable workers while I undeploy and re-deploy applications to them. > (Otherwise the users may get unnecessary errors.) No problem here - I > can use "updateworker" task, but here is a major issue: > > I am unable to find tomcat-jkstatus-ant.jar binaries anywhere! All the ant tasks should be in the same JAR file. > The mod_jk binaries directory > /dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28 only has > the Apache HTTPD module available for downloading. Moreover, the ant > example uses pathelement location ../dist/tomcat-jkstatus-ant.jar > which seems incomprehensible to me. This is probably due to its location in the Tomcat source distribution. Perhaps this components is not frequently used and so it's not very mature. It would be great if you could post some of these issues to the tomcat-dev mailing list, log bugs in the bug tracker, and (please!) submit patches to fix the problems. Tomcat only gets better with community participation. > My humble suggestions are: > 1) Please document the TCD ant task parameters so that the user does > not have to resort to source code > 2) Please make it easier to locate tomcat-jkstatus-ant.jar Good suggestions. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkseyRcACgkQ9CaO5/Lv0PAInwCaAuEi/B8UL5ca9cIuiFpVvIUH zywAnju17niHUzUtPt0Red9kkTgX6Mt2 =0+oZ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org