关键看从句中的lies. 如果把从句还原应该是one's success lies on...,请注意lies后面要+on, 才能表达“在于”的意思.但是从句中lie后面没有介词,那么从句引导词就要代表介词+宾语整个部分,那么就是where.
换个角度说,看看下面这个句子我想你就会明白了:
Many people hold the view that never giving up is on which the key to one's success lies.
这个句子因为本身已经含有on这个介词,那么只需要代表介词后面的宾语就可以了,那么就是which.
希望能帮到你