[Resin-interest] meaning of / in rewrite-dispatch

2009-11-30 Thread Ethan Larson

I have a (hopefully) quick question about the meaning of / in regexp 
attributes of the rewrite-dispatch tags. For example: 

dispatch regexp=/|\.html name=... 
... 
/dispatch 

Does the / have the same meaning as in servlet mappings, i.e. default? Or 
does it only match requests for /? That is, does the above dispatch match a 
request for /foo.jpg, in addition to / and /bar.html? 

Thanks, 
Ethan 
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] meaning of / in rewrite-dispatch

2009-11-30 Thread Ethan Larson
Thanks for the reply Alex. So how would I match only / and .html? Something 
like this? 

dispatch regexp=(^/$)|(\.html) name=... 

Cheers, 
Ethan 

- Original Message - 
From: Alex a...@caucho.com 
To: General Discussion for the Resin application server 
resin-interest@caucho.com 
Sent: Monday, November 30, 2009 2:52:45 PM 
Subject: Re: [Resin-interest] meaning of / in rewrite-dispatch 

 I have a (hopefully) quick question about the meaning of / in regexp 
 attributes of the rewrite-dispatch tags. For example: 
 
 dispatch regexp=/|\.html name=... 

This will match any request that has a '/' (basically every request has a '/') 

Something like the following will change .html to .jsp 
http://www.caucho.com/resin/admin/rewrite.xtp 

web-app 
rewrite-dispatch 
dispatch regexp=\.html target=.jsp/ 


Thanks, 
Alex 

 ... 
 /dispatch 
 
 Does the / have the same meaning as in servlet mappings, i.e. default? Or 
 does it only match requests for /? That is, does the above dispatch match 
 a request for /foo.jpg, in addition to / and /bar.html? 


 
 Thanks, 
 Ethan 
 ___ 
 resin-interest mailing list 
 resin-interest@caucho.com 
 http://maillist.caucho.com/mailman/listinfo/resin-interest 




___ 
resin-interest mailing list 
resin-interest@caucho.com 
http://maillist.caucho.com/mailman/listinfo/resin-interest 
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] java.lang.IllegalStateException: Block 0 is reserved.

2007-07-25 Thread Ethan Larson
Hi all,

We just completed the upgrade to 3.1.2 from 3.1.1, which included a
switch to clusterstore from jdbcstore as well.  Things look good, except
when we shut one of the nodes down, some of the other nodes in the
cluster will sometimes throw this exception:

[11:57:01.935] java.lang.IllegalStateException: Block 0 is reserved.
[11:57:01.935]  at
com.caucho.db.store.BlockManager.stateError(BlockManager.java:329)
[11:57:01.935]  at
com.caucho.db.store.BlockManager.getBlock(BlockManager.java:240)
[11:57:01.935]  at com.caucho.db.store.Store.readBlock(Store.java:466)
[11:57:01.935]  at
com.caucho.db.store.Store.readMiniFragment(Store.java:1319)
[11:57:01.935]  at com.caucho.db.store.Inode.read(Inode.java:302)
[11:57:01.935]  at
com.caucho.db.store.BlobInputStream.read(BlobInputStream.java:114)
[11:57:01.935]  at
com.caucho.server.cluster.ClusterStore.dumpObjects(ClusterStore.java:1231)
[11:57:01.935]  at
com.caucho.server.hmux.HmuxClusterRequest.dumpObjects(HmuxClusterRequest.java:391)
[11:57:01.935]  at
com.caucho.server.hmux.HmuxClusterRequest.handleRequest(HmuxClusterRequest.java:178)
[11:57:01.935]  at
com.caucho.server.hmux.HmuxRequest.scanHeaders(HmuxRequest.java:641)
[11:57:01.935]  at
com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:354)
[11:57:01.935]  at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)
[11:57:01.935]  at
com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)
[11:57:01.935]  at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)
[11:57:01.935]  at java.lang.Thread.run(Thread.java:619)

Is this something to worry about? Should I file a bug?  I found a
similar bug in mantis here: http://bugs.caucho.com/view.php?id=4


Thanks,
Ethan Larson





___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest