wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Jboss can't detect command prompt action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss can Watch "Jboss can New topic
Author

Jboss can't detect command prompt action

Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 184
Good day,

I have a program which running a batch file via cmd console and ProcessBuilder class being call to finish the task. the batch file path was hard coded as final String.(ie:c:/temp/myprocess.bat)

my question is, what could be the possibility that this program could run in Tomcat but not the case of jboss, both server are running the same war file in same machine.

Thanks ahead!!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

What version of JBoss AS?
How are you starting JBoss AS and how are you starting Tomcat?
Exactly how are you attempting to launch the batch file (show your code!).
And you do know that firing off a batch file from a web app is a very bad idea, right?


JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Jboss can't detect command prompt action
 
Similar Threads
java program that can run a .class file in msdos, is this possible?
Learning JBoss
hibernate.cfg.xml not found
thread pause after calling a batch file
Error in run.bat of jboss-4.0.5.GA