True Treasure of 10 Tzaddikim

One particularly moving part of the Yom Kippur Mussaf service is the story of the Ten Martyrs. Ten great tzaddikim were tragically killed by the Roman government, and their deaths serve as atonement for Klal Yisrael. It would seem from a plain reading of Eileh Ezkerah that all ten tzaddikim lived at the same time. However, Rav Yaakov Emden suggests that the author of Eileh Ezkara used poetic license to make it appear that way. He opines that they lived at different times. One of his proofs is from a Gemara in Menachos (18a) and Yevamos (84a).
The Gemara in Yevamos records: “Rebbe Yehuda HaNasi says: When I went to learn Torah from Rebbe Elazar ben Shamua, his students joined together against me like the roosters of Beit Bukya (highly aggressive animals that do not allow other creatures to remain among them), and they did not let me learn there. Therefore, I managed to learn only one thing in our Mishnah.”
Yet, the Gemara in Menachos records that Rebbe Yehuda HaNasi did successfully learn much Torah from Rebbe Elazar ben Shamua. Tosfos raises this apparent contradiction. Tosfos suggests that the passage in the Gemara in Menachos occurred later in Rebbe Yehuda HaNasi’s life. After Rebbe Yehuda HaNasi was already an accomplished scholar, the students of Rebbe Elazar ben Shamua allowed him to join them.