Actually, i think most (all?) of his works were shorter than novels, including both those two.
Most of his work is short story in form, but The Trial definitely qualifies as a novel, both in terms of quantity and the way in which it is written, as does The Castle. sjc