Jumping nonlinearities and weighted Sobolev spaces