I never ever use a shop press, vise, or a ball joint press. I always use a hammer. It is almost impossible to bend the yokes on axle shafts with a hammer. I know this because I have had several folks send me their shafts to straighten the yokes back out after they bent them with presses.
I'd also like to see the vise that will push in the caps on alloy axles, has to be pretty hefty with some decent length on the handle for leverage.
The other reason to avoid pressing is the cap has to be driven slightly past the correct spot where it is going to live to get the snap or retaining ring cleanly in the groove. Then you flip it over and use the other side to push it back to seat the first ring flush and give you just enough room to get the second retainer in place.
Once that is done and you have all 4 caps installed and all 4 retainers installed, you need to set the caps against the retainers with inertia. That is done by smacking the yoke sharply right below the cap on all 4 sides which will move the caps against the retainers. The yoke is not supported solidly on a surface but held in the air with one hand and smacked with the other.
A few notes about the caps on u-joints. They are hardened since they are bearing surfaces for the needle bearings. You won't damage them smacking them with a shop hammer or ball peen. If they were soft enough to be damaged with a hammer, the needle bearings would eat right through them in short order.
The opposite side needs to be supported flat and level on the socket or piece of tube with the right size hole in it for the cap to move into. Support it out of square and you'll spend a lot of time beating for little results.
Support and smack the first cap inward and that will generally give you enough slack to get the retainer out. Flip it over and do the other side, and that should get that retainer loosened enough to remove then continue with driving out the opposite side.
When we drive in the first cap for a new one, we over drive it a bit so that when you lift the body up to start the second cap, the first side isn't fully removed from holding the needle bearings in place and the other side is up far enough that the pin will engage the needle bearings in the second cap. We haven't displaced a needle bearing doing it that way in the last couple hundred caps or so.