The biggest issues that come up with the OBD2 4.0L swap are:
1) The check engine light.
The '96 XJ was the first year for the OBD2, plus it was the last year for the old XJ body style. It's PCM has the proper configuration to run a traditional "Check Engine" light with a bulb. This system uses a distributor and two O2 sensors.
All other Jeep OBD2 PCM's (JTEC or NGC in Chrysler speak) that I'm aware of have to communicate the need for a check engine light over what's called a "BUSS" (This is basically a simple one or 2 wire loop that connects all the computerized modules in a car together so they can share info without wiring every input and output into every computer that needs the info. the info is digital.) All TJ's and WJ's, '97 and later XJ's, '96 and later ZJ's have what's called a "MIC" (electro-Mechanical Instrument Cluster) where all the gauges and warning lamps are driven from signals transmitted over the Buss. This causes a problem in that no-one yet has an aftermarket solution to separate the signal out of the data stream to run the Check engine light. Most people either run a modified dash incorporating a stock late model cluster. Some people just temporarily attach the stock cluster to the dash for the Smog Check, and one guy took the stock cluster apart and made the connection from the bare circuit board to run the check engine light.
2) '97 and later setups use a "LDP" Evaporative system Leak Detection Pump. This system is there to test the fuel tank and vent lines. It has to catch a fuel vapor leak equivelent to a hole .040" or .020" depending on the year!!! This system will have to be plumbed into the fuel tank vent system. It takes a Leak Detection Pump, sealed EVAP canister, a fuel level sensor compatable with and connected to the PCM, careful sealing of the tank, vent and filler lines, and gas cap to make sure the system doesn't set codes (Instant smog check failure).
3) Returnless fuel systems are used on OBD2 models. The earlier 4.0L setup has the pressure regulator mounted to the fuel rail. In most instances you can use the earlier fuel rail on the later model intake, (just be sure to use the injectors that match the controller you want to use). There may or may not be a mismatch with the pressure requirements, depending on the years involved. Other possibilities include using the
stock OBD2 fuel pump module in the gas tank (Maybe the later model stock tank can be made to fit, or AERO can build a tank with a fuel pump threaded ring welded to it), using an aftermarket pressure regulator (Expensive), or for WJ, '01+ TJ/XJ style setups, use the WJ fuel filter/regulator which mounts external to the tank.
4) WJ or '01+ TJ/XJ setups have long runner intakes, dual cast iron exhaust manifolds, a coil pack instead of a distributor, and in CA models, 3 cat-cons with 4 O2 sensors. Federal models have one cat-con and 3 O2 sensors. The accessory arangement on WJs and late TJ's is quite different than the earlier models, you need to run the later model accessories as some of the mounting points have been changed so the earlier brackets won't fit the block. The late stuff fits the CJ fine. XJ's have a fan that mounts off to the Pass. side, you can run XJ accessories if you swap the water pump to a YJ/TJ pump, pulley and move the fan to the center. In most cases, you will need to run a late model alternator that matches the PCM in order to avoid setting fault codes.
5)Most '02 and later systems need a "Fillpipe vapor recovery system" in place, (This is there to trap and store all the vapor that escapes a vehicle while you are filling the gas tank!!! ) I don't see a way to properly set this system up unless you can fit a stock fuel tank, filler neck and filler lines into the Jeep you want to pass smog with. TJ stuff would probably come closest to fitting a CJ.
The easiest way I can think of to use a late model engine legally is to install OBD1 injection parts with a Mopar/Hesco harness or a Mopar/HESCO EFI kit on the late long block. The earlier 4.0l steel tube exhaust manifold fits fine on the late model (WJ type) head along with the early, late or Mopar/HESCO kit manifold.
As the post on the CJ-8 forum said, there's alot of info over at the CJ-Offroad.com forums:
http://www.cjoffroad.com/forums/forum.asp?FORUM_ID=24
Hope this helps!
P.S. If anyone has a specific question, please ask! I'll try my best to answer it!
Marty, SoCal Scramblers