Lil' Wayne performs at Virgin Mobile Festival in Baltimore August 10, 2008. REUTERS/Bill Auth

Raper Lil Wayne admitted to having a loaded gun on his tour bus in 2007 for which he is expected to go one year to prison, the Associated Press reports Thursday.

Wayne pleaded guilty to a felony charge of attempted criminal possession of a weapon. He had a loaded 40-caliber semiautomatic gun. He is back in court December 15 but his sentencing date has yet to be set, the agency said.