I suggest check whether the pins of an Ethernet shield goes properly into the pins of arduino. The shield uses SPI pins that are Pin# 10,11,12,13 and I don't think it has anything to do with UART pins Tx, Rx because while uploading code in arduino Tx, Rx will be used by arduino. So its possible there must be issue with ethernetshield