Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Imran Khan wrote: Hey, I am using tomcat 5.5.26 on Ubuntu, currently having a clustered configuration, but having the entire cluster on a single box. I have the tomcat instances sitting behind apache. Eventually I'd like to move to cluster on different physical boxes. Part of our application

Re: Serving static files in a cluster

2010-02-21 Thread imrank
Hey, Thanks for ur prompt reply. Unfortunately, the approach you described wouldn't work in our case because our app needs to do some custom authorization logic before a file can be downloaded (sorry should've mentioned that). I dont think I can get httpd to perform this authorization logic.

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 3:23 AM, imrank imran...@gmail.com wrote: Can I use the approach of having all the files sitting on a single NFS file server and have the different tomcat instances read/write the files to that server's filesystem? I guess theres gonna be some cost in terms of network

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
imrank wrote: Hey, Thanks for ur prompt reply. Unfortunately, the approach you described wouldn't work in our case because our app needs to do some custom authorization logic before a file can be downloaded (sorry should've mentioned that). I dont think I can get httpd to perform this

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Hassan Schroeder wrote: On Sun, Feb 21, 2010 at 3:23 AM, imrank imran...@gmail.com wrote: Can I use the approach of having all the files sitting on a single NFS file server and have the different tomcat instances read/write the files to that server's filesystem? I guess theres gonna be some

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 7:36 AM, André Warnier a...@ice-sa.com wrote: Not to mention possible inconsistencies between the different copies.. ;-) Imagine you have 4 balanced Tomcats, each of which has its own file repository, and each of which can potentially run the next upload request or

Re: 6.0.24 SSL Session always New

2010-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iain, On 2/19/2010 1:45 PM, iainmac wrote: 1. When do you set the userName attribute in the session? On validation of the user. Do you mean identification or the user (that is, somehow they enter their username without attempting to authenticate)?

Re: Serving static files in a cluster

2010-02-21 Thread André Warnier
Hassan Schroeder wrote: On Sun, Feb 21, 2010 at 7:36 AM, André Warnier a...@ice-sa.com wrote: Not to mention possible inconsistencies between the different copies.. ;-) Imagine you have 4 balanced Tomcats, each of which has its own file repository, and each of which can potentially run the

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 8:54 AM, André Warnier a...@ice-sa.com wrote: it's uploads that add a file to the file system on the Tomcat that processed the request. And that would be the source filesystem to rsync from. Yes, but how often ? In the simplest case, once each time a file is uploaded

Re: Restart one webapp

2010-02-21 Thread Mikolaj Rydzewski
Jonathan Soons wrote: I have one webapp that randomly freezes. I detect this with a script and restart tomcat. I would prefer to restart just the one webapp the way the manager does. Are you soure, that manager is able to restart webapp when it is 'frozen'? -- Mikolaj Rydzewski m...@ceti.pl

Re: Serving static files in a cluster

2010-02-21 Thread imrank
Hi awarnier, I was not aware that you could delegate authorization decisions to tomcat through apache. If this is the case that is good to hear, and means I can use httpd to serve my files and with all the advantages you described. I would certainly like to explore how to do this, please forward

Re: Serving static files in a cluster

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 3:01 PM, imrank imran...@gmail.com wrote: Hasan, the approach you described is one that I was also considering to keep things consistent across tomcat instances (btw, there is no modifications occurring to existing files). I was considering using an approach whereby

Re: problem in using context path in xsl:import

2010-02-21 Thread tembugs tembugs
Hi Chris, The options provided doesn't seem to work. java.io.FileNotFoundException: Thanks, Sangeetha On Fri, Feb 19, 2010 at 9:26 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tembug, On 2/19/2010 6:26 AM, tembugs tembugs

Re: problem in using context path in xsl:import

2010-02-21 Thread Konstantin Kolinko
2010/2/19 tembugs tembugs temb...@gmail.com: If the # character need to be encoded in xsl, how do I do it?  Can anyone share a sample on this? # must be encoded as %23 in the path part of an URL See also http://marc.info/?t=12573530792r=1w=2 http://issues.apache.org/jira/browse/COCOON-2270

Re: problem in using context path in xsl:import

2010-02-21 Thread tembugs tembugs
Hi Konstantin, Great. It works perfectly. But can we define any variable before the import statement in xsl to define the absolute path in one place than repeating in every location where needed? Thanks, Tembug On Mon, Feb 22, 2010 at 10:04 AM, Konstantin Kolinko knst.koli...@gmail.com wrote:

Re: Regarding Connector in tomcat 6

2010-02-21 Thread Cummins College
Hi, I am aware of the concepts regarding the http connector and the security constraint. I am able to run the entire web application on https. But i would like to toggle entire web application to http or https at runtime. I do not want to shut down tomcat and make changes in tomcat. Is it

Re: Virtual host set-up woes

2010-02-21 Thread Eric P
$CATALINA_HOME/conf/Catalina/dummyapps/ROOT.xml Where did you get that location for a Context element? It certainly didn't come from the docs, nor from Peter's or my messages. Go back and reread them all. To quote from Peter's message: Yep, I had that wrong. I was getting the Host name

Re: problem in using context path in xsl:import

2010-02-21 Thread Konstantin Kolinko
2010/2/22 tembugs tembugs temb...@gmail.com: Hi Konstantin, Great.  It works perfectly. But can we define any variable before the import statement in xsl to define the absolute path in one place than repeating in every location where needed? Probably no. The XSLT specification will tell you

Re: Regarding Connector in tomcat 6

2010-02-21 Thread Hassan Schroeder
On Sun, Feb 21, 2010 at 9:31 PM, Cummins College cummins.grou...@gmail.com wrote: I am aware of the concepts regarding the http connector and the security constraint. I am able to run the entire web application on https.  But i would like to toggle entire web application to http or https at

Re: problem in using context path in xsl:import

2010-02-21 Thread tembugs tembugs
Ok. I am not sure why it did not work. But it works for other web project that does not have # character in the path. On Mon, Feb 22, 2010 at 11:07 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2010/2/22 tembugs tembugs temb...@gmail.com: Hi Konstantin, Great. It works

Re: Regarding Connector in tomcat 6

2010-02-21 Thread Cummins College
Hi, I know the problem is slightly different but we want to access the server.xml for the http connector so that we can set its secure attribute depending on the protocol to be used is http or https. This has to done at runtime i.e without shutting down tomcat and re-starting it. Is it possible