I went through this with a Presario 2100, which appears to use an identical DC jack, so I'll offer what I consider a vast improvement over the HP design. The problem stems from the fact that, with the power plug in place, any contact with the plug transfers force directly to the relatively weak solder joints on the motherboard foil traces.
Rather than just replace the jack, I carefully established which board connection was + and -, then soldered a 4" long piece of 18 ga hookup wire to each, red for +, black for -. Leave the other end for now.
Then, run a 3/8-24 tap through the DC jack hole in the plastic case. Buy a female DC cord jack,(I believe it was 4.75mm barrel, 2.1mm pin), discard the cover, and thread the jack into the hole. It will be tight, as it's a metric size. I added a dab of adhesive for permanence.
With the other parts reassembled , bring the case close to the exposed wires, solder the red to pin, black to barrel, then put the case together.
Now any pressure or impacts on the power plug transfers to the case, not solder joints.