A plan for a six-storey building capable of housing nearly 300 students in Musselburgh has attracted opposition.