Was World War I the result of longstanding rivalries between the great powers?

Yes, it was. World War 2 was just an offspring from World War 1; meaning that World War 2 started because of all the unjustice that was done to the Central Powers during the Treay of Versailles and the league of nations.