wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Problem while running  an external program from struts application at serverside Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem while running  an external program from struts application at serverside" Watch "Problem while running  an external program from struts application at serverside" New topic
Author

Problem while running an external program from struts application at serverside

Mamatha Achuthan
Greenhorn

Joined: Oct 09, 2011
Posts: 8

Hi,

In a struts application's Action class I am running an external windows application using Runtime class's exec method. It is intended to run an application in background at server side to process a video file uploaded from the client machine. . Everything worked well with in my development machine which is a windows vista running the tomcat6 as executable. When I tried to deploy and run it from another machine which is a windows 7 running tomcat 6 as a service , the exec didn't worked as I expected. I couldn't find the external program running. For the tomcat service I enabled 'Allow service to interact with desktop' - property. After that I could see, when the 'exec' is invoked, the program is actually invoked and is in the background. An interactive service detection message box is shown with a message that 'A program might need information from you or your permission to complete a task' If I view the details, I can see the external program invoked and is waiting. If I click on that program window , it completes.

Any idea what is causing this?

Thanks,
M.K.A
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

I think this question has more to do with Tomcat, so let's just slide this over to the Tomcat forum, where it is more lilkely to get answers to this question.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while running an external program from struts application at serverside
 
Similar Threads
exec and cmd.exe / command.com on Win Server 2003
tomcat did not get started from eclipse
Problems with Tomcat as service on Windows Server 2003
Program can't create external processes when running in Windows Service Mode, please help
How to tune remote processors, using optimizeit...