contrib/customupdate/lib

is not mentioned in the snippet you showed, is it mentioned elsewhere?

You say:
I have the solrconfig.xml with the lib directives to this jar as well as
solr-core.jar

If you have an independent path to solr-core.jar, I'd take it out as
it's automatically loaded.

And what's with solr.net? That's not what I expect at all. Is your
custom code in solr.net? If it's
a custom jar  that you're trying to load into Solr, solr.net shouldn't
be referenced at all
since all the Solr code is in Java so I'm really confused about what
you're trying to do and
how things are set up.

Best,
Erick
On Thu, Nov 8, 2018 at 10:15 AM Vidhya Kailash <vidhya.kail...@gmail.com> wrote:
>
> Any idea why I am getting this error inspite of the following:
>
> I have the customupdateprocessor jar in contrib/customupdate/lib directory
> I have the solrconfig.xml with the lib directives to this jar as well as
> solr-core.jar
>
> and I see those jars being loaded on startup in the logs:
>
> 2018-11-08 01:04:17.929 INFO  (coreLoadExecutor-9-thread-3) [   x:reviews]
> o.a.s.c.SolrResourceLoader [reviews] Added 58 libs to classloader, from
> paths: [/.../solr-7.5.0/contrib/clustering/lib,
> .../solr-7.5.0/contrib/extraction/lib,
> .../solr-7.5.0/contrib/hotelreviews/lib, .../solr-7.5.0/contrib/langid/lib,
> .../solr-7.5.0/contrib/velocity/lib, .../solr-7.5.0/dist]
>
>
> inspite of these I get the following exception:
>
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/solr/update/processor/UpdateRequestProcessorFactory$RunAlways
>
>         at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_161]
>
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> ~[?:1.8.0_161]
>
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> ~[?:1.8.0_161]
>
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
> ~[?:1.8.0_161]
>
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
> ~[?:1.8.0_161]
>
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
> ~[?:1.8.0_161]
>
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
> ~[?:1.8.0_161]
>
>         at java.security.AccessController.doPrivileged(Native Method)
> ~[?:1.8.0_161]
>
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
> ~[?:1.8.0_161]
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> ~[?:1.8.0_161]
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ~[?:1.8.0_161]
>
>         at
> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:565)
> ~[jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> ~[?:1.8.0_161]
>
>         at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
> ~[?:1.8.0_161]
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> ~[?:1.8.0_161]
>
>         at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
> ~[?:1.8.0_161]
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ~[?:1.8.0_161]
>
>         at java.lang.Class.forName0(Native Method) ~[?:1.8.0_161]
>
>         at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_161]
>
>         at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:541)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:488)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:792)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:848)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2810)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:130)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:850)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2785)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2779)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:1430)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:970)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:869)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         at
> org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
>         ... 7 more
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.solr.update.processor.UpdateRequestProcessorFactory$RunAlways
>
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> ~[?:1.8.0_161]

Reply via email to