Fixing java.lang.NoSuchMethodError: org.apache.solr.core.SolrCore.getSchema()

If you are banging your head because of this exception in Solr 4.6 you should do following things.