HI there,
First, the H02sensor, bank 2 sensor 2 is located under the car, in the H converter assembly.
http://www.photohost.org/gallery/showphoto.php?photo=11150
If you reference this link, this is the exact routing of your sensor wiring harness down to the sensor, which is located on the passenger side of the H pipe. This would be the sensor you would be replacing, if it is setting a code, which it is in this case.
Your B0361 is for your drivers side actuator, in the CJ2 dual zone climate control. You can try to remove the #27 mini fuse under the dash board, at the passenger side fuse panel, and see if this will reset your actuator. Sometimes you may need to rehome the system if battery power drops off. If not, the actuator is about $50 and takes about 2 hours to install. You must remove the upper IP dash pad to access removal.
As for your 1571, as long as this code is H only, and NOT a C, you can disregard it. This is a given programming code for the 97 model year only, as long as it is a history.
Allthebest, c4c5