A method for producing a urinary catheter comprises the steps: providing a tubular catheter shaft having an axially extending lumen therein; thermoforming an end of the tubular catheter shaft into a closed end; inserting said closed end of the tubular catheter shaft into an injection mold cavity; and injecting thermoplastic polymer material into the mold cavity to form a tip on the thermoformed end of the tubular catheter shaft. Hereby, a very effective method is obtained, forming securely attached tips. Alternatively, an end of the tubular catheter shaft with a non-closed opening may be inserted into the injection mold cavity; and thermoplastic polymer material be injected into the mold cavity to form a tip on the end of the tubular catheter shaft, whereby the injecting is controlled so that a limited amount of thermoplastic polymer enters into the lumen.