FAQ
Hi,
I am new to Catalyst and i don't know how to solve this problem please help me. When i run server script "script/info_search_server.pl" of my application then got the follwoing Error.


Couldn't load class (Info::Search) because: Couldn't instantiate component "Info::Search::Model::DBIx", "Attribute (schema_class) is required at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/MOP/Class.pm line 364



Thanks,
sachin

Search Discussions

  • Jason Galea at May 19, 2010 at 3:22 am

    On Tue, May 18, 2010 at 8:23 PM, wrote:
    Couldn't load class (Info::Search) because: Couldn't instantiate component "Info::Search::Model::DBIx", "Attribute (schema_class) is required at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/MOP/Class.pm line 364
    Hi Sachin,

    it sounds like you have Info::Search::Model::DBIx which is extending
    Catalyst::Model::DBIC::Schema something like this?

    package Info::Search::Model::DBIx;
    use Moose;
    extends 'Catalyst::Model::DBIC::Schema';

    __END__

    but you haven't configured schema_class.

    you can either add config code to Info::Search::Model::DBIx:

    __PACKAGE__->config(
    schema_class => 'Your::DB::Schema::Class',
    connect_info => [
    'dbi:mysql:dbase_name',
    'username',
    'password',
    ],
    );

    or to your config file:

    Model::DB:
    schema_class: Your::DB::Schema::Class
    connect_info:
    - dbi:mysql:dbase_name
    - username
    - password



    --
    Jason Galea
    Web Developer

    www.eightdegrees.com.au

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMay 18, '10 at 10:23a
activeMay 19, '10 at 3:22a
posts2
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Svijay: 1 post Jason Galea: 1 post

People

Translate

site design / logo © 2022 Grokbase