Please do not run scripts as root-user if they would run without having root privileges. Running those scripts as unprivileged user would prevent the noisy output and would also focus on real errormessages.
You mentioned the you tried java 1.5 and 1.6 . Did you start the solr daemon? is JAVA_BIN in your path environment variable registered? Could you invoke a curl to localhost:8983 successfully ?
It simply seems solr is not running. Try the following statements if knowing what they are for and how to alter them for centOS: