Sergey Podolsky created SOLR-6749:
-------------------------------------

             Summary: java.lang.NoClassDefFoundError: 
org/apache/lucene/search/Searcher
                 Key: SOLR-6749
                 URL: https://issues.apache.org/jira/browse/SOLR-6749
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.10.2
            Reporter: Sergey Podolsky
            Priority: Blocker


Hello,

I'm trying to implement a Solrj solution using both Solr and Lucene version 
4.10.2. The simple code:
<code>
        CoreContainer.Initializer initializer = new CoreContainer.Initializer();
        CoreContainer coreContainer = null;
        try {
        coreContainer = initializer.initialize();
        } catch (IOException | ParserConfigurationException | SAXException e) {
            System.out.println("Error with Solr initialization");
            e.printStackTrace();
        }
</code>

produces next error:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/lucene/search/Searcher
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:132)
        at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:70)
        at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
        at com.company.SolrRAndD.doEveryThing(SolrRAndD.java:58)

The lucene-core-4.10.2.jar is in classpath. Could you help me with that?

Thanks in advance.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to