I had this same problem with my '02 about a month ago. You symptoms are the same. The crank position sensor comes into play whenever the engine is on, regardless of sitting still or moving as it is monitoring the engine rotation not transmission output.
In my case it was the crank position sensor. I swapped it out and the problems went away. If you're going to do it yourself, be careful removing the old sensor. You need to pull straight out, but the right hand catalytic converter is in the way. I ended up trying to pry mine using the mounting tab and broke the sensor off flush with the block! A bunch of cursing later, I managed to drive a screw into it, and pull it with vise-grips, but you don't want to have to deal with that

Todd
_________________
ltlowe - L.O.S.T #TL050820
2002 KJ Renegade, Bright Silver, 3.7l, 5spd, 4x4
Rusty's 2.5" Coil lift, JeepinAl's upper control arms, Rusty's skid, Arb bumper, Custom front skid, Custom nerfs, 245/75R16 BFG ATs,'99 WJ EVIC, Cobra75XT, Garmin GPS Antenna in roof lights, ...
http://www.ltlowe.ca/liberty/