If you want to get the war bonus in CoC, you must have at least one star. If you don’t have a stare in a war attack then unable to get the war bonus.