(AllHipHop News) Ja Rule must appear in court in August, where he will stand trial for a firearm violation in New York.The rapper was arrested in July of 2007 after a performance at the Beacon Theater. Police stopped his $250,000 Maybach Benz and found a loaded .40 caliber handgun in the car with the serial number scratched off. Ja Rule, 34, has pleaded not guilty to criminal possession of a weapon. Yesterday, Ja Rule suffered a loss in court with Manhattan State Supreme Court Justice Richard Carruthers ruled against his bid to challenge the DNA testing procedure of the weapon. His lawyer Stacy Richman said she will appeal the ruling. Richman also represented Lil Wayne, who was arrested by the NYPD on the same night in question, in a separate incident. Lil Wayne also challenged the DNA procedure used to test the .40 caliber handgun also found in his car, but eventually pled guilty to attempted possession of a weapon. Lil Wayne is currently serving an eight month sentence on Rikers Island.Ja Rule will stand trial on the gun charge on August 18th. If convicted, he faces up to four years in prison.