Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
OK - I figured out the logging. Here is the logging output plus the console output and the stack trace: main] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/' [main] INFO org.apache.solr.core.SolrResourceLoader - Adding

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Shawn Heisey
On 1/21/2015 9:56 AM, Carl Roberts wrote: BTW - I don't know if this will help also, but here is a screen shot of my classpath in eclipse. The URL in the slf4j error message does describe the problem with logging, but if you know nothing about slf4j, it probably won't help you much. Make sure

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
I had to hardcode the path in solrconfig.xml from this: ${solr.install.dir:} to this: /Users/carlroberts/dev/solr-4.10.3/ to avoid the classloader warnings, but I still get the same error. I am not sure where the ${solr.install.dir:} value gets pulled from but apparently that is

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Alan Woodward
Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong! Alan Woodward www.flax.co.uk On 21 Jan 2015, at 16:53, Carl

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Hi, Could there be a bug in the EmbeddedSolrServer that is causing this? Is it still supported in version 4.10.3? If it is, can someone please provide me assistance with this? Regards, Joe On 1/21/15, 12:18 PM, Carl Roberts wrote: I had to hardcode the path in solrconfig.xml from this:

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Already did. And the logging gets me no closer to fixing the issue. Here is the logging. [main] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/' [main] INFO org.apache.solr.core.SolrResourceLoader - Adding

Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Hi, I have downloaded the code and documentation for Solr version 4.10.3. I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one: Exception in thread main org.apache.solr.common.SolrException: No such core: db at

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
So far I have not been able to get the logging to work - here is what I get in the console prior to the exception: SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Alan Woodward
That certainly looks like it ought to work. Is there log output that you could show us as well? Alan Woodward www.flax.co.uk On 21 Jan 2015, at 16:09, Carl Roberts wrote: Hi, I have downloaded the code and documentation for Solr version 4.10.3. I am trying to follow SolrJ Wiki guide

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Alan Woodward
Aha, I think you're being stung by https://issues.apache.org/jira/browse/SOLR-6643. Which will be fixed in the upcoming 5.0 release, or you can patch your system with the patch attached to that issue. Alan Woodward www.flax.co.uk On 21 Jan 2015, at 19:44, Carl Roberts wrote: Already did.

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Shawn Heisey
On 1/21/2015 5:16 PM, Carl Roberts wrote: BTW - it seems that is very hard to get started with the Embedded server. The doc is out of date. The code seems to be untested and buggy. On 1/21/15, 7:15 PM, Carl Roberts wrote: HmmmIt looks like FutureTask is calling setException(Throwable t)

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Hi Shawn, Many thanks for all your help. Moving the lucene JARs from solr.solr.home/lib to the same classpath directory as the solr JARs plus adding a bunch more dependency JAR files and most of the files from the collection1/conf directory - these ones to be exact, has me a lot closer to

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Shawn Heisey
On 1/21/2015 7:02 PM, Carl Roberts wrote: Got it all working...:) I just replaced the solrconfig.xml and schema.xml files that I was using with the ones from collection1 in one of the examples. I had modified those files to remove certain sections which I thought were not needed and

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Ah - OK - let me try that. BTW - I applied the fix from the bug link you gave me to log the errors and I am now at least getting the actual errors: *default core name=db solr home=/Users/carlroberts/dev/solr-4.10.3/ db is loaded=false core init

Re: Errors using the Embedded Solar Server

2015-01-21 Thread Carl Roberts
Got it all working...:) I just replaced the solrconfig.xml and schema.xml files that I was using with the ones from collection1 in one of the examples. I had modified those files to remove certain sections which I thought were not needed and apparently I don't understand those files very