[Catalyst] Getting Error while running server script

Jason Galea lists at eightdegrees.com.au
Wed May 19 03:22:33 GMT 2010

On Tue, May 18, 2010 at 8:23 PM,  <svijay at gist.in> 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';


but you haven't configured schema_class.

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

    schema_class => 'Your::DB::Schema::Class',
    connect_info => [

or to your config file:

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

Jason Galea
Web Developer


More information about the Catalyst mailing list