UMN-PeopleSoft / IBMonitorService

PeopleSoft Integration Broker Monitoring Service
GNU General Public License v3.0
27 stars 5 forks source link

.\script\IBMonitorService.bat fails to start application #5

Open iversond opened 7 years ago

iversond commented 7 years ago

After building, I am unable to start the application with the default IBMonitorService.bat file. I'm running the command .\script\IBMonitorService.bat from the build directory.

Error: Could not find or load main class edu.umn.pssa.ibmonitorservice.IBMonitorSvc

Am I going about this wrong and there is a better way to start the app?

Dispader commented 7 years ago

@iversond I think those are temporary scripts to be used in the distribution packaging.

You should be able to extract one of the created binary distributions in ./build/distributions/ and run the batch files which get moved into the extracted ./bin directories.

iversond commented 7 years ago

@Dispader So, yes, I was going about it wrong! I extracted distributions\IBServiceMonitor.zip and ran bin\IBServiceMonitor.bat and it ran through my configuration. After that, the process stopped. Is the monitor supposed to run in the background, or do you have a job to start the monitor ever x minutes?

Dispader commented 7 years ago

@iversond I think we need the mighty @carl0426 to weigh in on that one. 😃

carl0426 commented 7 years ago

Sorry for the delay, guys.

I did update the execution line in the IBMonitorService file (we run it on Linux) to this: exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" edu.umn.pssa.ibmonitorservice.IBMonitorSvc "$@" &

This will run it in the background.

@iversond - I neglected your second question: you do not need to run it every "X" minutes. Run it once, and let it go in the background. Your configurations will determine how often the monitor polls for issues.