Re: [Resin-interest] Versioned Deploy from Command Line

2013-04-12 Thread Paul Cowan

On Apr 11, 2013, at 5:29 PM, Dan Ziegelbein dan.ziegelb...@sendthisfile.com 
wrote:

 The following command works as expected in 4.0.32:
 resinctl deploy --version version jar file
 
 It's not working for me in 4.0.33 and later. The command returns almost
 instantaneously and the web app is not deployed. Is this a known issue
 -- related to http://bugs.caucho.com/view.php?id=5415? 

Hi Dan,

Yes, it's the same bug, sorry, we were too aggressive on trapping --version 
on the command line.

You should still be able to deploy via REST or the resin-admin web app until we 
patch the issue in the next release.

Thanks,
Paul

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

===
Paul Cowan, Software Engineer
Caucho Technology
co...@caucho.com
http://blog.caucho.com
http://twitter.com/cauchoresin

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


Re: [Resin-interest] URL Rewrite Rules Lost After Webapp Deploy?

2013-04-12 Thread Paul Cowan

On Apr 11, 2013, at 6:39 PM, Dan Ziegelbein dan.ziegelb...@sendthisfile.com 
wrote:

 It seems like the URL rewrite rules defined at the cluster level (and I
 believe at other levels too) are not preserved after a deploy or
 undeploy operation.
 
 For example, starting with a stock installation of Resin Pro 4.0.35, and
 two versions of a simple web app war file (containing a single
 index.html file for its web content that does nothing more than display
 some text in the body), performing the following will demonstrate the
 issue:
 
 - edit resin.properties, enabling webapp_multiversion_routing.
 
 - edit resin.xml and add a rewrite rule directly underneath the 'app'
 cluster: e.g.:
  cluster id=app
  ...
resin:NotFound regexp=^resin:IfSecure
 value=false//resin:NotFound
 
 - start resin
 
 - deploy and test version 1 of a simple web app. The rewrite rule should
 work as expected, forcing a 404.
 
 - deploy and test version 2 of your web app (without restarting resin).
 The rewrite rule no longer takes effect. You will see your page.
 
 
 Has anyone else experienced this?

Hi Dan,

Thanks, I confirmed this is a bug related to multi-version routing, and have 
entered a bug report:  http://bugs.caucho.com/view.php?id=5418

The issue clears after a Resin restart.  You can also work around this by 
putting the rewrite rule in the web app rather than the cluster level.  For 
example, add a file named resin-web.xml in your WEB-INF directory:

web-app xmlns=http://caucho.com/ns/resin;
 xmlns:resin=urn:java:com.caucho.resin
  resin:NotFound regexp=^
resin:IfSecure value=false/
  /resin:NotFound
/web-app

I understand this may not be as convenient as placing the rewrite at the 
cluster level depending on how many webapps you have deployed… Although it's 
preferable in some cases, as modifying resin.xml triggers a Resin restart, 
while modifying resin-web.xml, only the web app will restart.

Thanks,
Paul


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

===
Paul Cowan, Software Engineer
Caucho Technology
co...@caucho.com
http://blog.caucho.com
http://twitter.com/cauchoresin

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


Re: [Resin-interest] URL Rewrite Rules Lost After Webapp Deploy?

2013-04-12 Thread Dan
Thanks Paul.

Yeah, I had started with the rules defined at the web app level, but some of 
them need access to the host name and port from the URL. Maybe I missed it, but 
I couldn't find a stock way of getting that info at the web app level. I have 
since played around with custom rules and think I can get it done that way, but 
if there's an easier way, I'm all ears. :)

Dan

Paul Cowan co...@caucho.com wrote:

___
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