Weapons violation brings prison term