aspose file tools*
The moose likes Websphere and the fly likes Probelom in Executing Process in Websphere 6.0.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Probelom in Executing Process in Websphere 6.0.0.1" Watch "Probelom in Executing Process in Websphere 6.0.0.1" New topic
Author

Probelom in Executing Process in Websphere 6.0.0.1

vasu devan
Ranch Hand

Joined: Apr 14, 2005
Posts: 38
Dear Friends,

I am using Websphere 6.0.0.1 as a server and i deployed my application into websphere.

Following are the probelom that is Encountered while Running an application through Websphere

While Running an Application,my components called .bat file to execute process,here when i called the component through JSP or Servlet,the process(.bat file) is not invoked.

When i see the Task manager --> process , the cmd.exe is running in background,but still im not able to get the outcome of the process.

Note:
----
The same process(.bat) is running perfectly on Resin or Tomcat servers,and im able to get the result of the process.

Is there any probelom around

Any help is highly appreciated

Regards
vasu
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Please post the code you are using to call the bat file and read the results. Are you sure the bat file is being executed from the proper location?


My Blog: Down Home Country Coding with Scott Selikoff
vasu devan
Ranch Hand

Joined: Apr 14, 2005
Posts: 38
hi Scott,

Thanks for the response

Following is the code which call the batch file

Runtime rtExcecute =Runtime.getRuntime();

sPath = "C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\default\\installedApps\\vasuNode01Cell\\NetCAST_war.ear\\NetCAST.war\\bin\\";

String[] saParam = { sPath + "NC_AdminUploadProcess.bat", sProcessID};

rtExcecute.exec( saParam );


Content of NC_AdminUploadProcess.bat
------------------------------------

Start java com.netcast.common.NC_AdminReportHandler %1
exit


Note:
----
The batch files not executing it seems,when i write log inside com.netcast.common.NC_AdminReportHandler component,its writing the log so it seems the component is not called in .bat file

is there any way to execute .bat files

Need help asap

Regards
vasu
sander hautvast
Ranch Hand

Joined: Oct 18, 2002
Posts: 71
>>Start java com.netcast.common.NC_AdminReportHandler %1
not exactly sure but try removing 'Start'. This command forks another shell, why bother?
vasu devan
Ranch Hand

Joined: Apr 14, 2005
Posts: 38
Dear Sander,

I tried after removing start in .bat file,eventhough its not working.

Any other possibilities

Regards
vasu
vasu devan
Ranch Hand

Joined: Apr 14, 2005
Posts: 38
Dear Sander,

I tried after removing start in .bat file,eventhough its not working.

Any other possibilities

Regards
vasu
 
 
subject: Probelom in Executing Process in Websphere 6.0.0.1