Tina Yang wrote:

> Hi Dirk,
>
> I have tried to configure my System like you advised. But I'm not using
> Tomcat 4.0 with Catalina but am still stuck with tomcat 3.2.3! How can I
> have only one Domain.xml in eg. /tomcat/conf ? I tried to edit
> slide.properties, but the WebDavServlet doesn't seem to care about it.
> I'm also using Slide 1.0.12. Maybe this is fixed in a later version?
>
> Thanks,
>         Tina

I think you have hit a tomcat limit here, look at this:
http://w4.metronet.com/~wjm/tomcat/2001/Jul/msg00249.html
"IIRC, Tomcat 3.2.2 only supports a single realm of usernames and passwords
for all of the webapps running in a single JVM.  That is not the case with 4.0."

There you have it, you can only have one user realm with tomcat 3.2.2.
Only one user "admin" for each tomcat.
If you can give them different names then you can continue otherwise you have to
use multiple tomcats.

You create 3 admin user admin1, admin2,admin3 in tomcat-users.xml and give
"admin1" user the role "webapp1" and so on. In the 3 web.xml files you give
access to one role.
ex: webapps/webapp1/WEB-INF/web.xml has:
    <auth-constraint>
      <role-name>webapp1</role-name>
(You have to give that role to all tomcat users that need access to webapp1)

I don't think slide.properties is used in a servlet environment. You need to use
the servlet parameter "domain":
    <init-param>
      <param-name>domain</param-name>
      <param-value>/Domain.xml</param-value>
      <description>
        Path to the domain configuration file, relative to the path of the
        web application.
        The default is '/Domain.xml'.
      </description>
    </init-param>

This was already in 1.0.12. There was only no example in web.xml yet.
Note that the path is relative to the webapp root ("/Domain.xml" =
"webapps/webapp1/Domain.xml").
If you want your domain.xml in a shared location try a full "file://..." URI.


Dirk

Reply via email to