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 MC <vi...@gmail.com> on 2013/10/10 18:15:35 UTC

which jar contains org.apache.solr.request.XSLTResponseWriter ?

Hello,
My embedded solr server (4.4.0) is crashing when I submit a query.
The reason is this:
Caused by: java.lang.ClassNotFoundException: 
org.apache.solr.request.XSLTResponseWriter

I have the following jars in my classpath:
solr-core-4.4.0.jar
solr-solrj-4.4.0.jar
solr-dataimporthandler-4.4.0.jar
solr-dataimporthandler-extras-4.4.0.jar

I checked contents of the solr-core jar, there is a file called 
XSLTResponseWriter in it, but it's in org.apache.solr.response package, 
not in org.apache.solr.request package.
I'm guessing there should be another jar?
Thanks,

M


Re: which jar contains org.apache.solr.request.XSLTResponseWriter ?

Posted by Shawn Heisey <so...@elyograg.org>.
On 10/10/2013 12:18 PM, MC wrote:
> Shawn thank you for your help. I had another look at my settings, and 
> although classpath and code were OK, I found this entry in 
> solrconfig.xml:
> <queryResponseWriter name="xslt" 
> class="org.apache.solr.request.XSLTResponseWriter">
>
> That was the problem. So you were right, it was a relic of the old 
> version. My code started working after I changed it to this:
> <queryResponseWriter name="xslt" 
> class="org.apache.solr.response.XSLTResponseWriter">

Awesome!  I'm glad it was something easily solved.

Thanks,
Shawn


Re: which jar contains org.apache.solr.request.XSLTResponseWriter ?

Posted by MC <vi...@gmail.com>.
Shawn thank you for your help. I had another look at my settings, and 
although classpath and code were OK, I found this entry in solrconfig.xml:
<queryResponseWriter name="xslt" 
class="org.apache.solr.request.XSLTResponseWriter">

That was the problem. So you were right, it was a relic of the old 
version. My code started working after I changed it to this:
<queryResponseWriter name="xslt" 
class="org.apache.solr.response.XSLTResponseWriter">

Thanks a lot,

M


On 10/10/13 1:50 PM, Shawn Heisey wrote:
> On 10/10/2013 10:15 AM, MC wrote:
>> My embedded solr server (4.4.0) is crashing when I submit a query.
>> The reason is this:
>> Caused by: java.lang.ClassNotFoundException: 
>> org.apache.solr.request.XSLTResponseWriter
>>
>> I have the following jars in my classpath:
>> solr-core-4.4.0.jar
>> solr-solrj-4.4.0.jar
>> solr-dataimporthandler-4.4.0.jar
>> solr-dataimporthandler-extras-4.4.0.jar
>>
>> I checked contents of the solr-core jar, there is a file called 
>> XSLTResponseWriter in it, but it's in org.apache.solr.response 
>> package, not in org.apache.solr.request package.
>
> In Solr 3.x, that class is in the org.apache.solr.request package.  
> Looks like it got moved in 4.x.  This seems to indicate one of two 
> things are in your classpath:
>
> 1) Solr or SolrJ 3.x jars
> 2) Something else designed for use (and compiled) with Solr/SolrJ 
> version 3.x.
>
> I'm guessing that the source of the problem is your application . 
> Chances are that it was written and compiled against Solr/SolrJ 3.x, 
> but you're trying to use it with version 4.4.0 without modifying or 
> recompiling it.
>
> That kind of major version jump just isn't possible.  A minor version 
> jump is likely to work, but I wouldn't even be too sure about that.  
> If this is what's happening, the application source code will need to 
> be updated for the new version and it will need to be recompiled 
> against the 4.4.0 jars.
>
> Thanks,
> Shawn
>
>


Re: which jar contains org.apache.solr.request.XSLTResponseWriter ?

Posted by Shawn Heisey <so...@elyograg.org>.
On 10/10/2013 10:15 AM, MC wrote:
> My embedded solr server (4.4.0) is crashing when I submit a query.
> The reason is this:
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.solr.request.XSLTResponseWriter
>
> I have the following jars in my classpath:
> solr-core-4.4.0.jar
> solr-solrj-4.4.0.jar
> solr-dataimporthandler-4.4.0.jar
> solr-dataimporthandler-extras-4.4.0.jar
>
> I checked contents of the solr-core jar, there is a file called 
> XSLTResponseWriter in it, but it's in org.apache.solr.response 
> package, not in org.apache.solr.request package.

In Solr 3.x, that class is in the org.apache.solr.request package.  
Looks like it got moved in 4.x.  This seems to indicate one of two 
things are in your classpath:

1) Solr or SolrJ 3.x jars
2) Something else designed for use (and compiled) with Solr/SolrJ 
version 3.x.

I'm guessing that the source of the problem is your application .  
Chances are that it was written and compiled against Solr/SolrJ 3.x, but 
you're trying to use it with version 4.4.0 without modifying or 
recompiling it.

That kind of major version jump just isn't possible.  A minor version 
jump is likely to work, but I wouldn't even be too sure about that.  If 
this is what's happening, the application source code will need to be 
updated for the new version and it will need to be recompiled against 
the 4.4.0 jars.

Thanks,
Shawn