Note that authentication plugins is not per-core/collection, they are system wide. Try to create a lib/ folder inside your SOLR_HOME and put the jar there.
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 19. sep. 2019 kl. 16:19 skrev Shawn Heisey <apa...@elyograg.org>: > > On 9/19/2019 6:18 AM, Zubovich Yauheni wrote: >> This class is wrapped into jar. Jar added to server lib directory and >> defined at solrconfig.xml: >> <lib dir="/webapps/solr-plugins/" regex="custom.jar" /> > > Where exactly is this "server lib" directory that you describe? If it's one > of the locations that gets loaded automatically, you should NOT be loading > anything in that location with the <lib> directive in solrconfig.xml. That > will result in the jar being loaded more than once. > >> null:org.apache.solr.common.SolrException: Error loading class >> 'com.custom.solr.core.RestrictDirectAccessPlugin' > > This problem with a Java program can be caused by having the same jar loaded > more than once. The reason it happens is complex and has to do with > interactions between multiple Java classloaders. > > The solution to these problems is to make sure that every required jar is > loaded, and that each of them is only loaded once. > > Thanks, > Shawn