Our organization uses the Skybot enterprise scheduler to run batch jobs. We recently deployed our first spring batch app, and scheduled our jobs to run using CommandLineJobRunner as the main class (Main-Class is defined in the manifest of our jar). The command looks like this:
java -Dspring.profiles.active=production -jar AppName.jar jobs/jobName.xml jobId
When executed on the command line manually, the jobs run perfectly. When the same command is executed by the scheduler, the job immediately hangs with no output in the skybot logs, and no work done by the job. We investigated possible permissions problems, but none exist. The spring batch documentation states that CommandLineJobRunner is available for the purpose of running scheduled jobs from the shell, but all our jobs are hanging immediately upon execution. How can we solve this?