Re: Run shell script when web application start/restart

2006-07-13 Thread Ibrahim . Siddiqui
To: Tomcat Users List cc: Subject: Re: Run shell script when web application start/restart Richard, I think he is discussing a 2-step process. First the JSP pages are *generated* via some shell script, then they are *compiled* from the JSP source by Tomcat.

Re: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
Thursday, July 13, 2006 7:59 AM >To: Tomcat Users List >Subject: Re: Run shell script when web application start/restart > >The reason for me choosing the first, messy solution was that this had to be >a quick fix, rewriting the logic in the JSP pages was out of the question >(an

RE: Run shell script when web application start/restart

2006-07-13 Thread Richard Mixon
AM To: Tomcat Users List Subject: Re: Run shell script when web application start/restart The reason for me choosing the first, messy solution was that this had to be a quick fix, rewriting the logic in the JSP pages was out of the question (and way above the allocated budget ;) ). Of course I ha

Re: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
Well, if you have to, from the shell script, you can probably connect to the tomcat manager URL and tell it to do the right thing. Still, all and all, it is hard to believe it isn't faster to refactor the JSP pages. Tom Potter wrote: > The reason for me choosing the first, messy solution was that

Re: Run shell script when web application start/restart

2006-07-13 Thread Tom Potter
The reason for me choosing the first, messy solution was that this had to be a quick fix, rewriting the logic in the JSP pages was out of the question (and way above the allocated budget ;) ). Of course I had the shell scripts and configuration files so it seemed just the right solution to use t

Re: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
I don't think so. You could, theoretically, have a context listener that then executes a shell script, but that is really messy, and the security manager probably won't even allow it. If I understand correctly, you want to have the following happen on context restart: - JSP pages get rebuilt from

Re: Run shell script when web application start/restart

2006-07-13 Thread Tom Potter
Jen, Just to make sure that we both talk about the same events : I don't want to restart the whole tomcat, only one web application, that is, by clicking on the start link(or restart) in on the admin page. I don't see how your suggestion would help me... if I'm missing something please make it cl

RE: Run shell script when web application start/restart

2006-07-13 Thread Mead, Jennifer L - VSCM
On my box the start and stop scripts are just that. .sh shell scripts. In your case I would just copy them to a save file and put in an execution string. The start scripts are in tomcat_home/bin. Jen -Original Message- From: Tom Potter [mailto:[EMAIL PROTECTED] Sent: Thursday, July