The best practice for upgrading is take the distribution and expand it. Then take your cores and replace it.
Then you are guaranteed to get the jars and not have other WARs/JARs hanging around. On Sun, Dec 22, 2013 at 7:24 PM, Shawn Heisey <s...@elyograg.org> wrote: > On 12/22/2013 9:51 AM, William Pierce wrote: > > My configurations works nicely with solr 4.4. I am encountering a > configuration error when I try to upgrade from 4.4 to 4.6. All I did was > the following: > > > > a) Replace the 4.4 solr.war file with the 4.6 solr.war in the tomcat/lib > folder. I am using version 6.0.36 of tomcat. > > b) I replaced the solr-dataimporthandler-4.4.0.jar and > solr-dataimporthandler-extras-4.4.0.jar with the corresponding 4.6 > counterparts in the collection/lib folder. > > > > I restarted tomcat. I get the following stack trace (full log is also > given below) – there are no other warnings/errors in my log. I have gone > through the 4.5 changes to see if I needed to add/modify my DIH > configuration – but I am stymied. Any help will be greatly appreciated. > > > > ERROR - 2013-12-22 08:05:09.824; > org.apache.solr.handler.dataimport.DataImportHandler; Exception while > loading DataImporter > > java.lang.NoSuchMethodError: > org.apache.solr.core.SolrCore.getLatestSchema()Lorg/apache/solr/schema/IndexSchema; > > The method it's complaining about not being there is > org.apache.solr.core.SolrCore.getLatestSchema() ... which is in Solr > itself, not the dataimport handler. I did some checking. This method > did not exist before 4.4.0, so my best guess is that your classloader is > loading a SolrCore class from 4.3.1 or earlier, which probably means one > of two things: 1) The Solr war you're extracting is not actually version > 4.6.0, or 2) you've got jars in your system from one or more older > versions. > > It's a good idea to delete the extracted war data whenever you upgrade > Solr -- stop the container, delete the extracted data and all old jars, > then replace the .war file and start it back up. > > Thanks, > Shawn > > -- Bill Bell billnb...@gmail.com cell 720-256-8076