You can use a rifle as a Commando, they can use rifle or cannon.
You lose some damage and certain cannon-only skills are locked out.
This's what I did, as a Medic. And now he uses a Bowcaster. So it ended up working out even better than I could have imagined.