In the first case prosecuted under Japan's 2009 antipiracy law, two Somali men pleaded guilty Tuesday in Tokyo District Court to charges of boarding and attempting to hijack a Bahamas-registered tanker operated by a Japanese shipping company.