As lyndidon stated, you should not have to configure the interfaces as ethernet-switching, this should be default configuration. You did state previousy that you performed:
Factory default and zeroized the EX2200 Switches
Depending on the exact order you performed these 2 steps, along with a commit of factory default, this "could" be potential reason your switch got into this state.
Ethernet-switching should be default setting for all interfaces.