Judge PM Chouhan, finding Ahuja guilty, relied on the original complaint lodged with the police and did not consider the maid's evidence, the Press Trust of India agency said late Wednesday.
The award-winning Ahuja, who denied the charges, will appeal against the sentence in the Mumbai High Court, his lawyer Srikant Shivade told reporters.
The court proceedings were closed to the media.
Ahuja, 37, starred in several Bollywood films, including "Hazaaron Khwaishein Aisi" (A Thousand Desires), "Gangster" and "Life in a Metro".
Last September, the 20-year-old maid withdrew the rape allegation, saying she was told to make a complaint to police by another woman who had initially got her the job with the star.
The court then declared her a hostile witness.
Ahuja spent three months in prison on remand in 2009, until he was released on bail.
While out of jail, he began filming for upcoming movies.
Ahuja is the latest in a number of Bollywood stars to have gone behind bars in recent years.
Sanjay Dutt was convicted in 2007 for buying illegal weapons from the plotters of the deadly 1993 Mumbai bombings, which killed more than 250 people.
Fellow action hero Salman Khan was found guilty in 2006 of poaching endangered Indian gazelles.
-----------------------------------------------------------------------
The award-winning Ahuja, who denied the charges, will appeal against the sentence in the Mumbai High Court, his lawyer Srikant Shivade told reporters.
The court proceedings were closed to the media.
Ahuja, 37, starred in several Bollywood films, including "Hazaaron Khwaishein Aisi" (A Thousand Desires), "Gangster" and "Life in a Metro".
Last September, the 20-year-old maid withdrew the rape allegation, saying she was told to make a complaint to police by another woman who had initially got her the job with the star.
The court then declared her a hostile witness.
Ahuja spent three months in prison on remand in 2009, until he was released on bail.
While out of jail, he began filming for upcoming movies.
Ahuja is the latest in a number of Bollywood stars to have gone behind bars in recent years.
Sanjay Dutt was convicted in 2007 for buying illegal weapons from the plotters of the deadly 1993 Mumbai bombings, which killed more than 250 people.
Fellow action hero Salman Khan was found guilty in 2006 of poaching endangered Indian gazelles.
-----------------------------------------------------------------------