I don't see where you mentioned the year of your Jeep, so this may or may not be relevant. I have a '98 XJ with the 4.0. When I bought it, it had a slightly rough idle. No biggie, a good tune-up will take care of it. Over the next couple weeks, I pulled my hair out as everything I checked failed to reveal the cause of the P0301. At my wits end, I stumbled across a TSB that covered, I believe, '96-'99 4.0s. It said that if you had a misfire and all other possibilities had been eliminated, you are to run Mopar Combustion Chamber Cleaner and replace all the valve springs. (I suppose a weak spring could cause the misfire, plus allow carbon buildup, therefore requiring the CCC). I ran the CCC and replaced the springs on just cyl 1. Problem solved! Again, this might not be your problem, but just wanted to throw it out there.