Re: [SolrResourceLoader] Unable to load cached class-name
On Wed, Nov 25, 2009 at 7:43 PM, Chris Hostetter wrote: > : > : I've deployed the contents of dist/ into JBoss's lib directory for the > : server I'm running and I've also copied the contents of lib/ into > > Please be specific ... what is "dist/" what is "lib/" ? ... are you > talking about the top level dist and lib directories in a solr release, > then those should *not* be copied into any directory for JBoss. > everything you need to access core solr features is available in wht > solr.war -- that is all you need to run the solr application. Yes, those were the directories I was taling about. > the only reason to ever copy any jars arround when dealing with solr is to > load plugins (ie: your own, or things counts in the contrib directory of a > solr release) and even then they should go in the special "lib" directory > inside your Solr HOme directory so they are loaded by the appropraite > classlaoder -- not in the top level class loader of your servlet > container. Ok, I'm not sure where my particular use of Solr fits into all this. I'm writing a log4j appender that adds each log entry to a Solr index. It's not really a Solr plugin. > : [SolrResourceLoader] Unable to load cached class-name : > : org.apache.solr.search.FastLRUCache for shortname : > : solr.FastLRUCachejava.lang.ClassNotFoundException: > : org.apache.solr.search.FastLRUCache > > this is most likely because you have duplicate copies of (all of) the solr > classes at various classloader levels -- the copies in the solr.war, and > the copies you've put into the JBoss lib dir. having both can cause > problems like this because of the rules involved with > hierarchical classloaders. I've removed all the extra files from the lib directory as you suggest, and now I get the following message when starting JBoss 18:54:23,083 ERROR [AbstractKernelController] Error installing to Create: name=jboss.system:service=Logging,type=Log4jService state=Configured mode=Manual requiredState=Create java.lang.NoClassDefFoundError: org/apache/solr/client/solrj/SolrServerException
[SolrResourceLoader] Unable to load cached class-name
Bit of a long error message, so I won't post it all in the subject :-) I'm trying to create a log4j solr appender to help us track down log entries from across our jboss cluster, I might be able to make use of the faceted search to identify errors that occur more often and things like that. Anyway, on to my problem, you can see the source on github http://github.com/Stubbs/solrIndexAppender I've deployed the contents of dist/ into JBoss's lib directory for the server I'm running and I've also copied the contents of lib/ into there as well. I've also copied the solrj libs into there too, but I get the following error: [SolrResourceLoader] Unable to load cached class-name : org.apache.solr.search.FastLRUCache for shortname : solr.FastLRUCachejava.lang.ClassNotFoundException: org.apache.solr.search.FastLRUCache I've seen posts that suggest this is because of usuing 1.3 libs, but the only 1.3 libs I have are in my maven repo and are not deployed. -S Follow me on Twitter: http://twitter.com/stubbs Blog: http://stubblog.wordpress.com My art: http://stuartgrimshaw.imagekind.com Stock Images: http://en.fotolia.com/partner/16775
Re: Solrj writes data to local directory
On Thu, Nov 19, 2009 at 1:41 PM, Yonik Seeley wrote: > Looks like a very old undesirable config issue... > http://search.lucidimagination.com/search/document/c5ae6fa490d0f59a > > I'll open a JIRA issue to track this. This was my problem also. Commenting out that element has solved that problem, and introduced another one. Even though I'm adding 11 documents at a time, when I look at the instance with the web interface I see this in the statistics: numDocs : 4 maxDoc : 24 I've run it a couple of times and the first run gave: numDocs : 2 maxDoc : 12 I don't understand what's happening because I'm not deleting any from the archive, shutting down the util I'm using to doesn't say anything about removing any. closed DirectUpdateHandler2{commits=1,autocommits=0,optimizes=0,rollbacks=0,expungeDeletes=0,docsPending=0,adds=0,deletesById=0,deletesByQuery=0,errors=0,cumulative_adds=11,cumulative_deletesById=0,cumulative_deletesByQuery=0,cumulative_errors=0} Anyway, I'll try and fix it and make another post if I cant work out what it is.
Solrj writes data to local directory
I have a Solr instance in a directory in 1 location on my hard drive, and set solr.solr.home to that location, when I open it, I can add documents and close the instance with no problem, but the data is written to a new directory solr/data in the current directory. Has anyone seen this before? -S Follow me on Twitter: http://twitter.com/stubbs Blog: http://stubblog.wordpress.com My art: http://stuartgrimshaw.imagekind.com Stock Images: http://en.fotolia.com/partner/16775