jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EP...@upstate.com
Subject RE: How to test apps that require specific Server.xml
Date Mon, 10 Feb 2003 18:32:46 GMT
I actually like #2 a lot!  The reason is I can see a nightmare of custom
server.xml's for option 1.  Whereas, with option 2, I am using the same
tomcat setup for my cactus tests, as I would if I just started it up!  I'll
look into it.

Eric Pugh

-----Original Message-----
From: Vincent Massol [mailto:vmassol@octo.com]
Sent: Monday, February 10, 2003 11:11 AM
To: 'Cactus Users List'
Subject: RE: How to test apps that require specific Server.xml

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

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.


> -----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
> properties based configs, to using Tomcat's JNDI support.  However,
> 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
> the plugin doesn't merge or otherwise deal with server.xml.  I could
> edit the source server.xml for all my webapps that need testing, but I
> 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

To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message