The Gospel of John (19:34) tells that a soldier pierced Jesus’ side with a spear and blood and water came out. The text does not give any name to the soldier. The name "Longinus" appears only later, in the apocryphal Gospel of Nicodemus, attached to late manuscripts of the Acts of Pilate (4th century).
The Vienna spear, according to the Kunsthistorisches Museum, is a winged spear from the Carolingian era, datable to the 8th century. X-ray analyses conducted by archaeologists from the University of Vienna place it between the 8th and early 9th century, and exclude a 1st-century dating.
The English metallurgist Robert Feather, in 2003, dated it to the 7th century at the earliest. Feather added that the nail inserted in the blade would be "compatible" with a Roman nail from the 1st century, but this is not enough to date the spear.
Even with the most generous dating, there remain at least six centuries of distance from Jerusalem. And the Vienna spear is not the only candidate: there are other "Longinus" spears, each with its supporters.
Vatican: a spear sent in 1492 by Sultan Bayezid II to Pope Innocent VIII; even then it was doubted.
Armenia: the spear of Geghard, today kept in Vagharshapat.
Krakow: a replica commissioned by Emperor Otto III and given to the Poles in 1000.
For historians, therefore, the Holy Spear is a medieval power relic: used by the rulers of the Holy Roman Empire as a symbol, not as a magical weapon. The same fate as other relics, like the Shroud.