> Env: Slide 1.0.9, Tomcat 3.2.1 on Linux RedHat 6.2
>
> I'm trying to get a Servlet to access the same domain that is being
> managed by the WebDAV Servlet. Need to package the NewServlet and the
> WebDAV Servlet in their own WAR files (different webapps directories)
> because of problems with logical pathnames.
>
> PROBLEM: After the NewServlet is initialized it will no longer detect
> changes to the namespace structure. That is, I can add or remove files
> using the WebDAV servlet, however, the NewServlet always reports the
> same files that were there when it was initialized.
>
> When I bring up Tomcat, everything looks good. Each WAR files contains
> it's own copy of the Domain.xml file and they both reference the same
> namespace. When I call the NewServlet it calls 'auto-initializing
> domain' and when I get the 'structure' from the NamespaceAccessToken and
> retrieve( ) the ObjectNode associated with the requested 'resourcePath'
> it looks good.
>
> Then I use the WebDAV Servlet to add a new file to the 'resourcePath'.
> Now when I use the NewServlet it continues to report the old structure.
>
> Is there some other API I should be using or some way to refresh the
> structure inside the Domain object? Thanks.
That could be a classloader problem. The following is true with TC 4, but I
didn't check with TC 3 :
Each webapp has a separate classloader, so there should be one domain for
each webapp. To solve this, try moving slide.jar (as well as the stores,
their dependencies, and the roles) to the shared classloader by putting it
in the "lib" directory.
Remy