I am a bit confused you state 3way switching and then you say 3way lamp which do you have
if you have 3way switches then it seems you are using the ground as a load carrying conductor.Now is time to call an electrician