org.slf4j.LoggerFactory error with Solr 4.3

314 views
Skip to first unread message

Eoghan Ó Carragáin

unread,
May 18, 2013, 1:00:35 PM5/18/13
to solrma...@googlegroups.com
Hi,
I've been having difficulty getting the SolrMarc 2.5.2 to work with Solr 4.3. Everything works fine with the HTTP/Remote mode, but when I try to run in the standard ("embedded"?) SolrMarc mode, I get "java.lang.ClassNotFoundException: org.slf4j.LoggerFactory" (see full error below).

The Solr wiki provides information on some changes that were made to the default logging in Solr 4.3+: http://wiki.apache.org/solr/SolrLogging#Solr_4.3_and_above.

I tried following the instructions under "Switching from Log4J logging back to Java-util logging" but it didn't appear to make any difference to SolrMarc.

Any ideas? Thanks!

Eoghan

################ SolrMarc Error ########################
 INFO [main] (MarcImporter.java:851) - Starting SolrMarc indexing.
 INFO [main] (Utils.java:339) - Opening file: C:\vf2solr4\local\import\import.properties
 INFO [main] (MarcImporter.java:821) -  Updating to Solr index at C:\solr-4.3.0\example\solr
 INFO [main] (MarcImporter.java:837) -      Using Solr core biblio
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.simontuffs.onejar.Boot.run(Boot.java:334)
        at com.simontuffs.onejar.Boot.main(Boot.java:170)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
        at org.apache.solr.core.CoreContainer.<clinit>(CoreContainer.java:101)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.solrmarc.solr.SolrCoreLoader.loadEmbeddedCore(SolrCoreLoader.java:212)
        at org.solrmarc.marc.MarcImporter.getSolrServerProxy(MarcImporter.java:839)
        at org.solrmarc.marc.MarcImporter.loadLocalProperties(MarcImporter.java:202)
        at org.solrmarc.marc.MarcHandler.loadProperties(MarcHandler.java:171)
        at org.solrmarc.marc.MarcHandler.init(MarcHandler.java:119)
        at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:857)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
        at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:946)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 15 more

Naomi Dushay

unread,
May 28, 2013, 7:08:31 PM5/28/13
to solrma...@googlegroups.com
Eoghan,

Were you able to solve this?  I just wrestled with Solr 4.3 and my version of SolrMarc and have gotten past this point.   Basically, it seems Solr 4.3 may expect servlet api 3.0 ;  I upgraded the Jetty in my solrmarc to 8.1.8  (was at 6).   There was a certain amount of mucking about with jar files and logging properties files, including using log4j in jetty for solr logging as well as using it for solrmarc logging.

Now I'm working on this error:

  org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Invalid UTF-8 middle byte 0xe0

which I think is related to the previous discussions on binary data and SolrJ for Solr 4, but am not sure yet.

- Naomi

--
You received this message because you are subscribed to the Google Groups "solrmarc-tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrmarc-tec...@googlegroups.com.
To post to this group, send email to solrma...@googlegroups.com.
Visit this group at http://groups.google.com/group/solrmarc-tech?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eoghan Ó Carragáin

unread,
May 28, 2013, 7:18:16 PM5/28/13
to solrma...@googlegroups.com

Hi Naomi,
I'm afraid I haven't looked at it since. I was using jetty 8.1.8 & log4j logging for solr, but may have stumbled on getting solrmarc to use log4j. Thanks
Eoghan

Reply all
Reply to author
Forward
0 new messages