Infinitely many solutions for a mixed boundary value problem