04.12.2001 18:29:27, Jean-Philippe Courson <[EMAIL PROTECTED]> wrote:
>Hi,
>
>To allow my webapp to use slide for authentication, I've setup a new 
>service running on port 8083 in server.xml.
>
>As my requirements were the same than Slide Admin webapp, I used 
>AdminHost as a template for my own Host implementation and just change 
>the path to the war file to install.
>
>Authentication now works perfect with security constraints but in my 
>servlets when I try to retreive NamespaceAccessToken by the call
>Domain.accessNamespace(new SecurityToken(getServletContext()), "slide"),
>I've got an exception saying that domain configuration file Domain.xml 
>was not found.
>
>First, I would like to know why I have to specify domain configuration 
>file path whereas nothing like that seems to be done for Slide Admin 
>webapp and I think I do exactly that same thing.

The admin-webapp assumes that either
(a) the domain has already been initialized by another component, such as 
the WebdavServlet or the SlideRealm or
(b) the path to the domain config file has been set in the slide.properties
file.

The same should work in your case, assuming that SlideRealm is up and running
(BTW you should be able to use SlideRealm without having to plugin a custom host 
implementation into tomcat4, as IIRC Remy pointed out in an earlier mail.)

>Second, if I do need to specify the path, I've read in the docs that for 
>the webdav servlet, the path to Domain.xml could be specified in 
>slide.properties file but how can I do this for my own servlet ?

The slide.properties file is included in the slide-kernel.jar. That's the one 
you need to adjust. (Note that you can only have one Slide Domain per JVM, so 
the path to the domain config file will be used for all servlets/webapps running 
in the same JVM.)

-chris
_______________________________________________
 /=/ cmlenz at gmx.de



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

Reply via email to