Christianity is founded on the idea that Jesus is the Jewish Messiah. Out of all of the requirements for the Messiah, being born in the House of David is the most important one. Yet in order to inherit that house in the Old Testament sense, Jesus would have to be counted as the son of a male descendant of David. Given the Biblical account (which I believe to be the true account) of Jesus having been born of a virgin, this presents a bit of an issue. Jesus was not born of a union between Joseph and Mary, Joseph (whose genealogy can be found in Matthew 1) played no role in the process at all. Could Joseph be considered the father of a child who was miraculously born of a virgin mother?
Does Jesus inherit the house of Joseph, and through him David, in OT Judaism?