Hi! I'm trying to solve this problem and would like some pointers: 1) Distribute my webapps as debian packages 2) base the debian packages on tomcat7 3) produce the packages with a maven plugin.
The part I need help with is how to create the debian package (2). I'd like to mimic the behaviour of the tomcat7 package, that is to have a system installation running as a service with a dedicated user. Furthermore I'd like to be able to install several of my webapps on the same system, separated from each other. I have two applications: foo-1.0-1.deb bar-1.0-1.deb with associated init scripts: /etc/init.d/foo /etc/init.d/bar Configuration, logging and other common stuff should be uniqe for the two applications. But both of them should use a single tomcat7-common installation. The applications will only contain one root webapp, so I'd like to be able to request them at: http://localhost:8080/ http://localhost:8090/ There is no need for /foo or /bar since they are on different ports. Now, I've had a look at tomcat7_7.0.42-1_all.deb and most of the stuff is what I expect. but I cannot say I get it all. So my question is how to do this the proper way? Is there any good how-tos, examples of guidelines I've missed? Seems like most tutorials deal with installing tomcat7 or deploying multiple webapps in one installation. I'm sure this is basic stuff for you guys, so please help me out :) Regards Thobias Bergqvist