Bug#431704: Policy file 50user.policy uses ${catalina.home}/webapps/ instead of ${catalina.base}/webapps/
Michael Koch
konqueror at gmx.de
Sun Sep 2 08:20:53 UTC 2007
On Wed, Jul 04, 2007 at 01:45:22PM +0200, Emmanuel Rodriguez Santiago wrote:
> Package: tomcat5.5
>
> The policy file /etc/tomcat5.5/policy.d/50user.policy includes some
> sample directives that can be used to configure additional permissions
> for individual webapps. All the examples that refer to the folder
> 'webapps' use the variable ${catalina.home} instead of ${catalina.base}.
> The problem is that the ${catalina.home} point to a folder that doesn't
> include the webapps folder.
>
> Here's the value of each variable:
> catalina.base=/var/lib/tomcat5.5
> catalina.home=/usr/share/tomcat5.5
>
> Here's the contents of the folders:
> $ ls /var/lib/tomcat5.5
> conf logs shared temp webapps work
>
> $ ls /usr/share/tomcat5.5
> bin common conf doc logs server shared temp work
>
>
> As you can see the location ${catalina.home}/webapps/ gets translated to
> /usr/share/tomcat5.5/webapps/ which doesn't exist. The right path to use
> is ${catalina.base}/webapps/ which gets translated to
> /var/lib/tomcat5.5/webapps/ which exists.
Hmm, for me the webapps dir is in both locations. But I agree that usage
of catalina.home is wrong and irritating in this file. Thanks for
reporting this issue. I will commit a fix to our SVN.
Cheers,
Michael
More information about the pkg-java-maintainers
mailing list