Many thanks Richard, I suppose that answers my question, albeit I was
hoping there was something more elegant that can be done other than
changing file permissions after installation.

what is the correct way to reload applications after copying files into
the installation directory? ant stop; ant start seem not to be designed
for that judging from the complaints from tomcat I get in catalina.out!!

thanks again
Murad Nayal

"Richard Mixon (qwest)" wrote:
> 
> Murad/Alon,
> 
> This has nothing to do with a SecurityManager. Murad is trying to run
> the executables on the server - from one of his servlets I assume.
> 
> The problem is the fact that a war files is basically just a zip file.
> It does not maintain the file attributes that are specific to a
> particular operating system (e.g. execute, read-only, write, etc.).
> Other archive formats do this (e.g. tar and Windows backup archives).
> 
> I believe the user's "umask" setting is probably used to set the
> permissions - but Tomcat might do something different. Regardless, even
> if Tomcat honors the umask setting, you would not want to change this
> such that all files were marked executable when the jar was
> uncompressed.
> 
> I am not sure you have much option other than to have a custom ant
> script that alters the permissions after the files are deployed from the
> war file. The jakarta-tomcat-5.5.x-deployer has a deployment script
> (build.xml) that should be a good starting point.
> 
> Hope this helps - Richard
> 
> -----Original Message-----
> From: Alon Belman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 19, 2005 4:44 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: question about deployment (including executables in war)
> 
> Murad,
> 
> I'm not 100% sure what you're asking -- like what do you mean by "jar
> strips the execute file permissions from my programs"? -- but i'm
> assuming you cant do it.   In fact, I will be more than a little
> alarmed if a packaged web app can include and run arbitrary executables
> unless specifically allowed to so by its server's SecurityManager, or if
> the server is running without a SecurityManager.  That is, you cannot do
> it unless you configure it OUTSIDE your web application.
> 
> Hope this helps,
> Alon
> 
> On 7/17/05, Murad Nayal <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Everybody,
> >
> > I need to include executable programs as part of my web application.
> > in development I created a directory WEB-INF/bin where I kept copies
> > of the programs I need. problem is when I create a war file for my
> > application, jar strips the execute file permissions from my programs.
> 
> > is there any way around this at all where I would still have my
> > application packaged as a single war file with the necessary
> > executables (with the correct permissions).
> >
> > many thanks
> > Murad Nayal
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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

Reply via email to