He is feeling very threatened. If he is not nuetered or the other cat is not he will keep on doing it. Also keeping the door to the room closed is often the only way, but if he still feels threatened he will just move the "habit" to another room. Good luck!