STOCKTON (CBS13) — A student at Franklin High School in Stockton was found with a loaded gun in his jacket while on campus Wednesday, officials said.

Shortly after noon, the student was caught vaping in class and was sent to the principal’s office, according to the Stockton Unified School District Police Officer’s Association.

READ MORE: Dramatic Price Drop At Pump Draws Drivers To Galt Gas Station

When the student became uncooperative, the school resource officer was called in to assist with a search of the student. The student removed his jacket and handed it over to a campus security monitor, who noticed a heavy object inside one of the pockets, officials said.

READ MORE: Jewelry Store Owner Says Suspects Stole 300K Worth of Merchandise

The school resource officer then searched the jacket and retrieved a loaded handgun. A spare, loaded magazine was reportedly also found in the student’s backpack.

MORE NEWS: Armed Robbers Steal $300K Worth Of Items From Jeweler In South Sacramento

The student was arrested and booked into juvenile hall, officials said.