Sebastien Roblin
While the rockets the Barb employed appear to have been effective, it’s not clear that they were superior to having another deck gun. But within a decade of the Barb’s last mission, new rocket-based technologies in the form of guided cruise and ballistic missiles drastically reduced the relevance of big guns on warships or coastal defenses. The new weapons could be launched by a submerged submarine a long distance from the shore, safe from immediate retaliation.
In the closing months of World War II, heavy losses and depleted fuel stocks kept many of Japan’s remaining combat aircraft grounded and warships in port, awaiting an anticipated amphibious invasion. Starting in July 1945, Allied battleships embarked on a series of naval bombardments of coastal cities in Japan in an effort to draw these forces out to battle—with little success.
more
http://nationalinterest.org/blog/the-buzz/how-one-us-navy-submarine-attacked-japan-rockets-during-22295