It's my understanding that the armonitor program will start and manage the start of pretty much anything you put in the armonitor.cfg file...I've never tried it, but I've talked to people that have.
Looking at the lines you have, they don't make a bunch of sense to me....I'll strip all of the specifics out to demonstrate my meaning....my understanding of starting java programs is that there are two main ways to do it java -cp "<all of the classes you need>" com.whatever.classname parameters or java -cp "<all of the classes you need>" -jar NameOfTheJarYouAreStarting.jar parameters the standard way that Remedy starts the plugin servers is an example of the first example....but in yours you have java -cp "<all of the classes you need>" -jar *InboundPush.jar* com.bmc.arsys.pluginsvr.ARPluginServerMain -x <servername> -i "D:\Program Files\BMC Software\ARSystem" -m this is a weird 'mix' of trying to start a plugin server, and trying to run your own little program....I don't know what parameters your program needs, but I'm sure they aren't the same as the plugin server...so I would recommend getting rid of all of the extra stuff at the end and seeing how it goes.... Secondly...when you say it runs fine from the command line....what user is set to start Remedy, is it 'Local System' or is it a local/domain account? I ask because you starting the program while logged in as you would not necessarily be the same as the armonitor trying to start the same command line, so it's important that when running it from the command line, you are running it in the same exact situation (or as close as possible) to the way armonitor is going to try to start it. On Thu, Dec 21, 2017 at 9:51 AM, Narayanan, Radhika < [email protected]> wrote: > Hi, > > > > I meant custom Java programs that interact with the AR Server using Remedy > API for Java and pass the data to external systems. > > > > *Thanks,* > > *Radhika Narayanan* > > M: +91 7349776359 <+91%2073497%2076359> | Ext: 8073119 | VOIP: +44 20718 > 25880 > > Out of Office: Dec 25-26, 29 - Jan 1 > > > > *From:* ARSList [mailto:[email protected]] *On Behalf Of *LJ > LongWing > *Sent:* Thursday, December 21, 2017 9:59 PM > *To:* ARSList > *Subject:* Re: ARMonitor should automatically start custom java plugin > .jar > > > > Radhika, > > When you say plugin, are you talking about a plugin that works within the > Remedy Java Plugin framework, or are you talking about a custom Java > application that you want Remedy to manage the starting of? > > > > On Thu, Dec 21, 2017 at 9:08 AM, Narayanan, Radhika < > [email protected]> wrote: > > Hi List, > > > > Can you please share your knowledge on how to make custom java plugins > start automatically with armonitor on ITSM 9.1.03 server? > > > > *Thanks,* > > *Radhika Narayanan* > > > > *From:* ARSList [mailto:[email protected]] *On Behalf Of *Narayanan, > Radhika > *Sent:* Monday, December 18, 2017 7:40 PM > *To:* '[email protected]' > *Cc:* Gunjalli, Kiran Kumar > *Subject:* ARMonitor should automatically start custom java plugin .jar > > > > Hi List, > > > > I need my custom java plugin to automatically start along with AR Server > 9.1.03. Hence, I added the .jar file to armonitor.cfg and added > Server-Plugin-Alias entries to ar.cfg. When the AR Server service is > started, I can see the java.exe in the Task Manager. However, it doesn’t > seem to load fully, stops at 25 MB memory growth, with the following errors > in the log file produced by custom plugin. It complains about missing > arsys_api.xml file. Such a file is not present in ARServer folders either. > > > > On the other hand, if I start the custom .jar manually on 9.1.03 server > from command-prompt, it executes successfully. Also, following the same > procedure, I’m able to successfully load similar, custom java plugins on > ITSM 8.1.02 server from armonitor. Unfortunately, that procedure doesn’t > appear to work on ITSM 9.1.03 only. Please advise. > > > > Log file shows: > > DEBUG 2017-12-18 10:25:09,154 [main] com.bmc.thirdparty.org.apache. > commons.configuration.ConfigurationUtils - ConfigurationUtils.locate(): > base is jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/ > pluginsvr/SF/lib/arapi91_build002.jar!/arsys_base.xml, name is > arsys_api.xml > > DEBUG 2017-12-18 10:25:09,154 [main] com.bmc.thirdparty.org.apache. > commons.configuration.DefaultFileSystem - *Could not locate file > arsys_api.xml* at jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/ > pluginsvr/SF/lib/arapi91_build002.jar!/arsys_base.xml: JAR entry > arsys_api.xml not found in D:\Program Files\BMC Software\ARSystem\pluginsvr\ > SF\lib\arapi91_build002.jar > > DEBUG 2017-12-18 10:25:09,158 [main] com.bmc.thirdparty.org.apache. > commons.configuration.DefaultConfigurationBuilder - Load failed for > optional configuration xml: Cannot locate configuration source arsys_api.xml > > DEBUG 2017-12-18 10:25:09,158 [main] com.bmc.thirdparty.org.apache. > commons.configuration.DefaultConfigurationBuilder - Creating > configuration null with name default > > DEBUG 2017-12-18 10:25:09,159 [main] com.bmc.thirdparty.org.apache. > commons.beanutils.ConvertUtils - Convert string 'default.xml' to class > 'java.lang.String' > > DEBUG 2017-12-18 10:25:09,159 [main] com.bmc.thirdparty.org.apache. > commons.beanutils.converters.StringConverter - Converting 'String' value > 'default.xml' to type 'String' > > DEBUG 2017-12-18 10:25:09,160 [main] com.bmc.thirdparty.org.apache. > commons.configuration.ConfigurationUtils - ConfigurationUtils.locate(): > base is jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/ > pluginsvr/SF/lib/arapi91_build002.jar!/arsys_base.xml, name is default.xml > > > > armonitor.cfg holds 2 custom plugins, both don’t get loaded fully. > > > > "D:\Java\jre1.8.0_144\bin\java" -Xmx1024m -classpath "D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF;D:\Program Files\BMC > Software\ARSystem\pluginsvr\SF\lib\arapi91_build001.jar;D:\Program > Files\BMC > Software\ARSystem\pluginsvr\SF\lib\arapiext91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\ardoc91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\arutil91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\log4j-1.2.14.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\sqljdbc4.jar;" -jar > "D:\Program Files\BMC Software\ARSystem\pluginsvr\SF\*InboundPush.jar*" > com.bmc.arsys.pluginsvr.ARPluginServerMain -x <servername> -i "D:\Program > Files\BMC Software\ARSystem" -m > > > > "D:\Java\jre1.8.0_144\bin\java" -Xmx1024m -classpath "D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF;D:\Program Files\BMC > Software\ARSystem\pluginsvr\SF\lib\arapi91_build001.jar;D:\Program > Files\BMC > Software\ARSystem\pluginsvr\SF\lib\arapiext91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\ardoc91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\arutil91_build001.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\log4j-1.2.14.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\sqljdbc4.jar;D:\Program > Files\BMC Software\ARSystem\pluginsvr\SF\lib\json-20141113.jar" -jar > "D:\Program Files\BMC Software\ARSystem\pluginsvr\SF\*OutboundPush.jar*" > com.bmc.arsys.pluginsvr.ARPluginServerMain -x <servername> -i "D:\Program > Files\BMC Software\ARSystem" –m > > > > *Thanks,* > > *Radhika Narayanan* > > > > > -- > ARSList mailing list > [email protected] > https://mailman.rrr.se/cgi/listinfo/arslist > <https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.rrr.se_cgi_listinfo_arslist&d=DwMFaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=blQKSsGpUV3vEddB0ufOi2izy5lUOikNQGO3le4xQkw&m=ud3odQoO2kvG0JLUZgC0FAuoJk70b_cHV8xe9h__iAY&s=I6hN73iJ2w2-alOrtEmM3wbcv_IguZudnwoxhCb03Tc&e=> > > > > -- > ARSList mailing list > [email protected] > https://mailman.rrr.se/cgi/listinfo/arslist > >
-- ARSList mailing list [email protected] https://mailman.rrr.se/cgi/listinfo/arslist

