You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Jim Downing <ji...@pobox.com> on 2003/04/23 10:28:46 UTC
Re: RE: How to test apps that require specific Server.xml
Hi everyone,
Sorry if this has been covered in between the end of the list archive
and me subscribing to this list.
I have a preference for the first method - if a project has
requirements on a container we like to capture that in an example
config file as part of the project.
I'll do a really simple version (nominating an alternate server.xml
via a maven.cactus.tomcat4x.serverxml property) some time this week.
jim
===================================================================
* From: Vincent Massol
* Subject: RE: How to test apps that require specific Server.xml
* Date: Mon, 10 Feb 2003 08:11:06 -0800
Hi Eric,
I have been thinking a bit about this and I don't have a perfect
solution yet. I can think of 2:
1/ Have an optional Maven Cactus plugin property, such as
maven.cactus.tomcat4x.serverxml. If defined, the cactus plugin will one
the location specified by it and if not, it will use the default
server.xml. A variation of this is what you suggest: merging the 2
server.xml. That's true for all configuration files for all
containers...
2/ Have the ability in the cactus plugin to point to an existing tomcat
setup instead of deploying it in a tmp directory. Thus for simple tests,
users would use the predefined setup and for complex one, it could use a
user-defined setup.
-Vincent
> -----Original Message-----
> From: EPugh@upstate.com [mailto:EPugh@upstate.com]
> Sent: 10 February 2003 16:44
> To: cactus-user@jakarta.apache.org
> Subject: How to test apps that require specific Server.xml
>
> Hi all,
>
> I recently discovered JNDI and am thinking about switching from a
heaviliy
> properties based configs, to using Tomcat's JNDI support. However,
that
> means a lot of data is in server.xml and web.xml's...
>
> I am using the Maven plugin for Cactus, and am challenged by the fact
that
> the plugin doesn't merge or otherwise deal with server.xml. I could
just
> edit the source server.xml for all my webapps that need testing, but I
was
> hoping to hear what other people have done.
>
> Has anyone written something that would merge a specific webapps
> server.xml
> into the main test server.xml file?
>
> Eric Pugh