Tried as suggested here by copying the file to /usr/share/tomcat7/lib and also to /usr/share/java still getting the error
javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory]
Appreciate some help.