Japan's prime minister and the president's national security adviser have both warned that the missile tests violated a U.N. Security Council resolution.