By a rigid box what do you mean? At x=0 and at x=L (for a box of length L) the potential is infinity. If that is the case then imposing the periodic boundary condition in the wavefunction, momentum eigenstates are well defined...I mean I donno why it should not be... May be you can explain it to me.