[Catalyst] Error creating CDBI model

Maxim Nechaev nechaev at technodesign.ru
Wed Nov 23 06:33:37 CET 2005


I create CDBI model class:
xeim at slack:~/MyApp/script$ myapp_create.pl model User CDBI dbi:mysql:database=test root
 exists "/home/xeim/MyApp/script/../lib/MyApp/Model"
 exists "/home/xeim/MyApp/script/../t"
created "/home/xeim/MyApp/script/../lib/MyApp/Model/User.pm"
created "/home/xeim/MyApp/script/../lib/MyApp/Model/User"

All looks ok but when i try run server i get error message:
xeim at slack:~/MyApp/script$ ./myapp_server.pl
Use of uninitialized value in hash element at /usr/lib/perl5/site_perl/5.8.7/Class/DBI/Loader/Generic.pm line 119.
Couldn't instantiate component "MyApp::Model::User", "Can't call method "classes" on an undefined value at /usr/lib/perl5/site_perl/5.8.7/Catalyst/Model/CDBI.pm line 68." at /usr/lib/perl5/site_perl/5.8.7/Module/Pluggable/Fast.pm line 86
Compilation failed in require at ./myapp_server.pl line 47.

Catalyst 5.57
Perl 5.8.7
OS: Linux Slackware

Thanks.


-- 
Maxim Nechaev




More information about the Catalyst mailing list