Thanks for the reply Joao Figueiredo. I really appreciate it.
From my JSP I call following command:
<<AbsolutePath on Windows Server>>\ExecuteETLTransformation.bat "<<AbsolutePath on Windows Server>>\data-integration-8.1.0.0" PDI_RepoName PDI_TransformationName PDI_username PDI_Pwd <<AbsolutePath on Windows Server>>\LogFileaName.log "-param:v_month=JAN" "-param:v_year=2018"
Contents of Execute ETLTransformation.bat
d:
cd %1
pan.bat /rep:"%2" /trans:"%3" /dir:/Transformations /user:%4 /pass:%5 /level:Detailed >> %6 %7 %8 %9
I added some debug messages in Pan.bat and Spoon.bat and found that it gets stuck in spoon.bat at command:
%SPOON_START_OPTION% "%_PENTAHO_JAVA%" %OPT% -jar launcher\launcher.jar -lib ..\%LIBSPATH% %_cmdline%
This command basically translates into
"java.exe" "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\launcher.jar -lib ..\libswt\win64 -main org.pentaho.di.pan.Pan -initialDir "<<Absolute path on Windows server>>\data-integration-8.1.0.0"\ /rep:"PDI_RepoName" /trans:"PDI_TransformationName" /dir:/Transformations /user:PDI_UserName /pass:PDI_Password /level:Detailed "-param:v_month=JAN" "-param:v_year=2018"
Above command executes and creates an output file as expected, PDI log file also indicates that process is successfully completed, but control does not return back. Subsequent debug messages in spoon.bat are not printed. But once I shutdown tomcat server, it prints the subsequent messages from spoon.bat
I also tried to use an older version of jar file pentaho-application-launcher-6.1.0.1-196 to investigate, but it seems that is also behaving the same way. So basically I just copied pentaho-application-launcher-6.1.0.1-196.jar file into launcher directory and modified spoon to use pentaho-application-launcher-6.1.0.1-196 instead of launcher.jar
Thanks for all your help.