> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: 23 November 2003 11:51
> To: 'Cactus Users List'
> Subject: RE: REPOST: RE: Authentication Failure --> Problem Found
> 

[snip]

> > To get this working, I need to put my own tomcat-users.xml in the
conf
> > directory instead of the default one. I figured out how to use the
> <conf>
> > element that should be nested inside the <tomcat4x> element. I
changed
> my
> > tomcat4x element to look like this
> >
> >         <tomcat4x dir="${catalina.home}" port="8080"
> >             todir="${test.home}/reports">
> >       <conf dir="${catalina.home}/conf">
> >         <include name="**/*.xml"/>
> >         <exclude name="**/*server.xml"/>
> >       </conf>
> >     </tomcat4x>
> >
> > This is supposed to copy my tomcat-users.xml and my web.xml from the
> > ${catalina.home}/conf to the new conf. And when I run the task, I
see
> this
> > in the console
> >
> > [cactus] Copying 2 files to
> > C:\DOCUME~1\tnabil\LOCALS~1\Temp\cactus\tomcat4x\conf
> >
> > But when I go to that directory, I find that the default files are
still
> > there. The only explanation I have is that my files are copied and
then
> > overwritten. This is just a guess. Is there a way out of this?
> 
> Ok, I've looked at the code and it is a bug (or rather an unsupported
> situation :-)). The class to look at is
AbstractCatalinaContainer.java.
> Here is what it says:
> 
>         // TODO: only copy these files if they haven't been provided
by
> the
>         // user as a conf fileset
>         ResourceUtils.copyResource(getProject(),
>             RESOURCE_PATH + theResourcePrefix + "/tomcat-users.xml",
>             new File(confDir, "tomcat-users.xml"));
>         fileUtils.copyFile(new File(getDir(), "conf/web.xml"),
>             new File(confDir, "web.xml"));
> 
> This is definitely a bug. Could you open a bugzilla bug report about
this?
> Please note that I have no knowledge of this code as I haven't written
it
> myself.

Ok, I think I've fixed it. No need for a bugzilla bug report as it's
already fixed in Cactus 1.6dev in CVS HEAD (It'll be posted in the
nightly build area later today). It will also be in Cactus 1.5 final.

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to