• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Probelom in Executing Process in Websphere 6.0.0.1

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 4342
40
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
vasu devan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>>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
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sander,

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

Any other possibilities

Regards
vasu
 
vasu devan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sander,

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

Any other possibilities

Regards
vasu
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic