Hi! > Completely normal. The default version of this file is stashed away in > the opennms-provision-persistence JAR and used in the absence of a copy > in OPENNMS_HOME/etc. Editing the default foreign-source definition > (either via the web UI or via the ReST API) is the typical way to cause > a copy to appear in etc.
Thanks. > Assuming you copied > protocols/xmp/target/org.opennms.protocols.xmp-15.0.0-SNAPSHOT.jar to > your OPENNMS_HOME/lib directory and restarted, "XMP" should show up in > the list of available detector classes when you edit any foreign-source > definition from the web UI. No file edits should be necessary. Yes, copied and XMP shows up in the WebUI. However, I have to go into the WebUI to kick off loading my custom (not customer) detector. Is there a way to get the detector to load automatically at startup? > If this is not happening, then there's some missing piece in either your > detector code (does it correctly implement / extend the relevant > super-type so that Provisiond's reflection stuff automagically > recognizes it?) or the XML glue that tells Provisiond's service registry > to do this reflection stuff on the classes in your package. I don't have > enough of this fresh in my mind to point you straight at the answer, I'm > afraid. > > In case someone else who's reading this does, Bobby's fork is at > https://github.com/rdkgit/opennms and the detector code is in protocols/xmp. My detector implements SyncServiceDetector interface but does not inherit from any other class. public class XmpDetector implements SyncServiceDetector I implement all of the relevant interface methods. My guess is that the error message is related. provisiond.log:2015-01-15 15:37:28,522 ERROR [scanExecutor-3] o.o.n.p.s.DefaultProvisionService: Configured plugin does not exist: PluginConfig [name=XMP, pluginClass=org.opennms.protocols.xmp.detector.XmpDetector, parameters=] grep'ing through the code, DefaultProvisionService class is calling getPluginInstance() and then failing and spitting out the above error message. I don't know enough about reflection stuff, provisiond, etc. to know what to look for. Any suggestions would be welcome? Maybe the author of this piece could take a look? Thanks, Bobby
pgpScpFr0jsTp.pgp
Description: PGP signature
------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet
_______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel