aspose file tools*
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: 2265
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while running an external program from struts application at serverside