You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2009/12/07 20:52:59 UTC

Re: [SolrResourceLoader] Unable to load cached class-name

: 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.

So if i'm understanding correctly, you want to run a "stock" solr server, 
with none of your own custom code in that server, and then in another 
application you want to load a custom log4j appender that sends the log 
messages to the solr server.

do i understand that part correctly?

is your log4j appender using solrj to communicate with solr?

: 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

Hmmm... just to be clear: are you getting this error in the 
instance of Solr you've setup to *recieve* the log messages, or in the 
application where you are generating the log messages?

If it's the former, then it sounds like you still have a mungled classpath 
-- the only thing you need there is the solr.war, no other special jar 
files.  If it's the later, then it looks like you don't have all of hte 
solrj client jars.  I don't remember off the top of my head which jars you 
need, but a wuick "jar tf" looking for 
"org/apache/solr/client/solrj/SolrServerException" should be fairly 
trivial.




-Hoss