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 Paolo Castagna <pa...@hp.com> on 2005/07/05 11:08:11 UTC
RE: Problem with task using Cactus v1.7 + Tomcat 5.5.9 +
JDKv1.5.0_04 ...
On Mon, 2005-07-04 at 17:28 +0200, Vincent Massol wrote:
> Hi Paolo,
>
> I don't think we support Tomcat 5.5.x. There's probably a slight variation
> with it that prevents using it with the existing code. I believe Tomcat
> 5.5.x is a different beast than Tomcat 5.0.x.
>
> We're currently working to integrate Cargo (http://cargo.codehaus.org) which
> supports Tomcat 5.5.x.
>
> Now, if you have a small patch to male the current code work with Tomcat
> 5.5.x, we'll apply it.
>
> Thanks
> -Vincent
Hi,
I do not know why... but it seems that the problem is the default
server.xml file that uses this:
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
... instead of this:
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
So I used the serverxml attribute for <tomcat5x> element to
specify the correct server.xml file:
<tomcat5x if="cactus.home.tomcat5x"
dir="${cactus.home.tomcat5x}"
port="${cactus.port}"
output="${build.dest.test.reports}/tomcat5x.out"
serverxml="${tools}/cactus/conf/server.xml"
todir="${build.dest.test.reports}/tomcat5x"/>
Now it works.
Best regards,
Paolo Castagna.