Thanks Shalin. I added that in the solrconfig.xml, but now I get this exception,
org.apache.solr.common.SolrException: Not Found Not Found request: http://localhost:8080/solr/core0/update?wt=javabin&version=2.2 I do have the "core0" under the solr.home. The core0 directory also contains the conf and data directories. The solr.xml has following in it, <cores adminPath="/admin/cores"> <core name="core0" instanceDir="core0" dataDir="data"/> </cores> Am I missing anything else? Thanks, -vivek On Wed, Apr 1, 2009 at 1:02 PM, Shalin Shekhar Mangar <shalinman...@gmail.com> wrote: > On Thu, Apr 2, 2009 at 1:13 AM, vivek sar <vivex...@gmail.com> wrote: >> Hi, >> >> I'm trying to add the list of POJO objects (using annotations) using >> solrj, but the "server.addBeans(...) " is throwing this exception, >> >> org.apache.solr.common.SolrException: Bad Request >> Bad Request >> request: http://localhost:8080/solr/core0/update?wt=javabin&version=2.2 >> >> Note, I'm using multi-core. There is no other exception in the solr log. >> > > Can you make sure all the cores' solrconfig.xml have the following line? > > <requestHandler name="/update/javabin" > class="solr.BinaryUpdateRequestHandler" /> > > The above is needed for binary update format to work. I don't think > the multi core example solrconfig.xml in solr nightly builds contain > this line. > >> Related question - I'm trying to upgrade the solrj from nightly build, >> but I get some classnotfound exception >> (java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory). What are >> all the dependencies for Solrj1.4 (wiki has only up to 1.3 >> information). >> > > I think you need slf4j-api-1.5.5.jar and slf4j-jdk14-1.5.5.jar. Both > can be found in solr's nightly downloads in the lib directory. > > -- > Regards, > Shalin Shekhar Mangar. >