Urbana man sentenced to prison on weapon charge