dev@javaserverfaces.java.net

Need help: add Tomcat support to Mojarra automated test setup

From: Ed Burns <ed.burns_at_sun.com>
Date: Thu, 2 Sep 2010 07:14:56 -0700

Hello everyone,

Mojarra has always made a point of supporting the version of Apache
Tomcat that supports the minimum version of the Servlet/JSP specs
required by the JSF specification, and we will continue to do so.
However, we could use some help.

I'd like to see our automated test setup support tomcat.

Can someone please help with this? The immediate concern is issue 1757
[1]. But rather than just doing a one-off for this issue, I want to
take the opportunity to do the right thing and make it so our whole
automated test setup runs with Tomcat. I've filed issue 1497 to track
this. The following steps need to be done to solve this task.

1. Make "tomcat" a valid value for the build.properties field
"container.name". The value of the container.name property is used to
load an ant xml file at the location
${basedir}/commont/ant/${container.name}/container.xml

This file must have the following ant targets

    <target name="config.container">
    <target name="props">
    <target name="update.impl.manifest">
    <target name="container.deploy"
            description="Deploy the JSF Implementation artifacts to the target container.">
    <target name="container.start"
    <target name="container.stop"
    <target name="container.restart"

2. Discover which of the existing tests *do not, and should not* run on
Tomcat. For example, we have some tests that leverage EE features, and,
as you all know, Tomcat is NOT an EE container. I don't want to mess
with adding something like OpenEJB to the stack, but if someone feels
inspired to do so, I won't object.

3. Refactor the build system so that those tests from the previous step
simply do not run when container.name==tomcat

That's it!

Any help is greatly appreciated.

Ed

[1] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1757

[2] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1497
-- 
| ed.burns_at_sun.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/
|  3 work days until JSF 2.1 Milestone 5
| 10 work days until JavaOne 2010
| 45 work days until DOAG 2010
| 49 work days until JSF 2.1 Milestone 6