Hi guys, need your help: I added a custom plugins to Solr, to support my applicative needs (one index handler and 2 search components), all of them access a native library using JNI. The native library wrapper class loads the library using the regular pattern:
public class YWrapper{ static{ System.loadLibrary("YJNI"); } ... } Basically things are working great, but when I try to create another collection, an exception is being thrown: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATing SolrCore 'anotherColl_shard1_replica1': Unable to create core [anotherColl_shard1_replica1] caused by: Native Library /...path_to_library/LibY.so already loaded in another classloader I guess that this happens because every core has its own class loader. Is that right? Is there any way to define my plugin (my jar file) as a shared library, so it would only be loaded once when the process starts, and not on every core instantiation? -- View this message in context: http://lucene.472066.n3.nabble.com/Native-library-of-plugin-is-loaded-for-every-core-tp4207996.html Sent from the Solr - User mailing list archive at Nabble.com.