Since you are using __PACKAGE__->load_namespaces
, all new classes will loaded, which explains why the simple existence of the new class files cause an error. If there is a syntax error in your new class files, then loading the schema will die.
You can use perl -c
on the new class files to ensure they will compile and get a better idea of the problem if they do not.