Bin,
Take a look at the Wiki or the javadoc for the ClusterCacheRefresher

http://wiki.apache.org/jakarta-slide/ClusterSupport

You should be able to modify the repository-domain parameter to include
your war context.

-James

On Fri, 2004-11-19 at 08:39 -0800, Bin Liu wrote:
> Hi James,
>   
>   I uncomment this following line in cluster support.
>   <!-- Uncomment for cluster support. Be sure to local-host and 
> repository-host -->
>   <listener classname="org.apache.slide.cluster.ClusterCacheRefresher">
>    <configuration>
>     <node local-host="192.168.1.100"
>           local-port="4444"
>        repository-host="192.168.1.100"
>        repository-port="9000"
>        repository-protocol="http"
>        username="root"
>        password="root"
>        base-uri="/files/"
>     />
>    </configuration>
>   </listener>
>  
> It works great if I build and deploy the WAR without context. For example: 
> the slide servlet can be accessed directly by http://localhost:8080/slide, 
> cluster works fine, however, if I build and deploy a WAR with war context 
> name, like: http://localhost:8080/WARcontext/slide to access slide servlet, 
> all other configuration works except clustering. I keeps get errors like:
> SEVERE: Subscription for uri='/files/' failed. State: 501
> 11:27:15,819 INFO  [STDOUT] Nov 19, 2004 11:27:15 AM 
> org.apache.webdav.lib.Notif
> icationListener subscribe
> SEVERE: Subscription for uri='/files/' failed. State: 501
> 11:27:15,839 INFO  [STDOUT] Nov 19, 2004 11:27:15 AM 
> org.apache.webdav.lib.Notif
> icationListener subscribe
> SEVERE: Subscription for uri='/files/' failed. State: 501
> 11:27:15,849 INFO  [STDOUT] Nov 19, 2004 11:27:15 AM 
> org.apache.webdav.lib.Notif
> icationListener subscribe
> SEVERE: Subscription for uri='/files/' failed. State: 501
> 11:27:26,544 INFO  [STDOUT] http-0.0.0.0-9000-Processor25, 19-Nov-2004 
> 11:27:26,
>  unauthenticated, GET, 200 "OK", 240 ms, /
> 
> I misunderstood your previous reply "repository domain to 
> "/Warcontext/slide"", thought "namespace" was the place to change, could you 
> point me where is the "repository domain" configuration is?
> 
> thanks
> 
> Bin
> 
> James Mason <[EMAIL PROTECTED]> wrote:
> Bin,
> 
> I'm confused about what you're trying to accomplish. Neither of those
> values has anything to do with clustering.
> 
> -James
> 
> On Thu, 2004-11-18 at 14:31 -0800, Bin Liu wrote:
> > Hi James,
> > 
> > I tried "/Warcontext/slide" from both Domain.xml and web.xml, but still 
> > does not work.
> > 
> > in web.xml
> > 
> > 
> namespace
> 
> > 
> > 
> /mywar/slide
> 
> > in Domain.xml
> > 
> > 
> > 
> > 
> > Seems to be a bug.
> > 
> > thanks
> > Bin
> > 
> > James Mason wrote:
> > Bin,
> > 
> > If you can't use a combination of repository-domain and base-uri to get
> > the path you want, than it's probably a bug. You can try setting your
> > repository domain to "/Warcontext/slide", I think that should work.
> > 
> > I don't have a setup where I can test this, so you're going to have to
> > let me know what does and does not work.
> > 
> > -James
> > 
> > On Tue, 2004-11-16 at 13:26 -0800, Bin Liu wrote:
> > > Hi,
> > > 
> > > I have tried clustering on Slide2.1b2 and works great.
> > > However, I found the url has to be in the format of: 
> > > http://host:port/slide, if I there is a WAR context in between, it won't 
> > > work. eg. http://host:port/Warcontext/slide.
> > > 
> > > Is there way to get around this?
> > > 
> > > thanks
> > > Bin
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Discover all thats new in My Yahoo!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>                       
> ---------------------------------
> Do you Yahoo!?
>  The all-new My Yahoo!  Get yours free!    


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

Reply via email to