jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Castagna <paolo.casta...@hp.com>
Subject RE: Problem with <cactus> task using Cactus v1.7 + Tomcat 5.5.9 + JDKv1.5.0_04 ...
Date Tue, 05 Jul 2005 09:08:11 GMT
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.


Mime
View raw message