Welded hydraulic cylinder with thread on piston rod