AnsweredAssumed Answered

Stateful plugin not getting started in EPAgent on Windows Platform

Question asked by Balram.Deswal on Jul 7, 2015
Latest reply on Jun 20, 2017 by Hiko_Davis

Hi Team,

 

I have created a jar file Test.jar, in which main class is TestPlugin (in which main method is defined). This class is in package com.gic.wily.monitoring. Then I added this jar file in epagent/lib folder. After that I configured a stateful plugin in IntroscopeEPAgent.properties file in the following manner:

 

introscope.epagent.plugins.stateful.names=DemoPlugin

introscope.epagent.stateful.DemoPlugin.class=com.gic.wily.monitoring.TestPlugin

 

Now when I run the EPAgent, it gives the following error in the log file:

 

7/06/15 05:47:03 PM PDT [ERROR] [EPAgent] EPAgent failed to start because: Class 'com.gic.wily.monitoring.TestPlugin' not found for plugin DemoPlugin.

com.wily.introscope.epagent.IllegalConfigurationException: Class 'com.gic.wily.monitoring.TestPlugin' not found for plugin DemoPlugin.

  at com.wily.introscope.epagent.ClassPlugin.<init>(ClassPlugin.java:58)

  at com.wily.introscope.epagent.EPAConfig.parseConfig(EPAConfig.java:170)

  at com.wily.introscope.epagent.EPAConfig.parseConfigFile(EPAConfig.java:105)

  at com.wily.introscope.epagent.EPAgent.start(EPAgent.java:249)

  at com.wily.introscope.epagent.EPAgent.main(EPAgent.java:514)

  at com.wily.introscope.api.IntroscopeEPAgent.main(IntroscopeEPAgent.java:55)

 

When I configure this plugin on EPAgent on unix platform. It is getting started successfully. The only additional step I perform there is to define Test.jar in EPACtrl.sh file in epagent/bin folder like this:

EpaCmd="java -Xms${MIN_HEAP_VAL_IN_MB}m -Xmx${MAX_HEAP_VAL_IN_MB}m -cp lib/EPAgent.jar:lib/Test.jar:lib/IntroscopeServices.jar:lib/Agent.jar:epaplugins/epaMQMonitor/epaMQMonitor.jar:epaplugins/epaMQMonitor:epaplugins/epaMQMonitor/lib/com.ibm.mq.pcf.jar:epaplugins/epaMQMonitor/lib/com.ibm.mq.jar:epaplugins/epaMQMonitor/lib/connector.jar:epaplugins/epaMQMonitor/lib/com.ibm.mqjms.jar com.wily.introscope.api.IntroscopeEPAgent"

 

Now I want to know, how I define Test.jar on Windows platform??

 

Regards,

Balram Singh Deswal

Outcomes