the issue is because of the in the file /usr/share/tomcat7/conf/Catalina/localhost/solr.xml the xml node was in small letter but it should start as caps It was
<context crossContext="true" debug="0" docBase="/usr/share/solr/solr.war"> <environment name="solr/home" override="true" value="/usr/share/solr" type="java.lang.String"> </environment></context>
should be
<Context crossContext="true" debug="0" docBase="/usr/share/solr/solr.war">
<Environment name="solr/home" override="true" value="/usr/share/solr" type="java.lang.String">
</Environment></Context>