Fwd: Best practices for packaging Web applications?
On Apr 1, 2005 5:08 PM, Richard Bullington-McGuire
> If I wanted to create an RPM that had a web application in it, designed to
> be deployed into a JPackage-provided Servlet 2.4-compliant container, what
> would be the best way to go about doing this?
The problem is very similar to this one:
"If I want to create an RPM that has a jar file in it, designed to be
run in a JPackage-provided JVM, what would be the best way to go about
I believe it can be solved in similar fashion.
> I'm not aware of any generic way to do this within JPackage. Maybe there should be
> one, maybe not, we could probably debate that endlessly.
Of course there are complicating factors: webapps usually have to have
either its own data directory or database schema/storage. It may also
require the editing of certain servlet container specific
configuration files, such as adding users or roles to Tomcat's
> It's clear that if you wanted to focus on Tomcat 5 integration, you could
> package your web applications in the same way that tomcat5-webapps are
> packaged, in exploded-WAR-file format.
One complicating factor are jar files that live in the WEB-INF/lib
directory. If I read the JPackage philosophy correctly, putting