Yoda acted as a Jedi General for the Republican troops protecting Kashyyyk from a separatist invasion. Chewbacca was one of the Wookiee military commanders.