Connecting Atmel AVRISP to JTAGICE header
You may want to tell what specific controller you use, but as far as I know, the AVRs never share the same pins for JTAG and ISP. Those are fundamentally different interfaces.