<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'>The only Session.pm is found in /AddressBook/Schema. I don't have Models for the People or Addresses that I'm retrieving in this address book example, but I've only got Schemas and Controllers. <br><br>The code of /AddressBook/Schema/Session.pm is and as you can see by the package designation Session.pm is suppose to be under the Schema directory and not the Model directory. <br>--------------------------------<br>package AddressBook::Schema::AddressDB::Session;<br><br>use base qw/DBIx::Class/;<br>__PACKAGE__->load_components(qw/Core/);<br>__PACKAGE__->table('sessions');<br>__PACKAGE__->add_columns(<br> id => { data_type => "CHAR", is_nullable => 0, size => 72 },<br> session_data => { data_type => "TEXT", is_nullable => 1, size => undef },<br>
expires => { data_type => "INTEGER", is_nullable => 1, size => undef}<br>);<br>__PACKAGE__->set_primary_key('id');<br>1;<br>-----------------------------------<br><br>--- On <b>Fri, 5/9/08, Andreas Marienborg <i><omega@palle.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Andreas Marienborg <omega@palle.net><br>Subject: Re: [Catalyst] session in DB example in Catalyst book<br>To: archan2000@yahoo.com, "The elegant MVC web framework" <catalyst@lists.scsys.co.uk><br>Date: Friday, May 9, 2008, 10:19 PM<br><br><div id="yiv700820878"><br><div><div>On May 10, 2008, at 3:53 AM, Andrew wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table style="" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight:
inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;">Using the Rockway's Catalyst book to help bring me up to speed on Catalyst and I've got a problem that I can't figure out.<br><br>On page 59, where it uses a database to store the session key, I've made all the code changes, but when I start the server it gives me the following error:<br><br>"Couldn't find a model named DBIC::Session at /usr/local/share/perl/5.8.8/Catalyst/Plugin/Session/Store/DBIC.pm line 143.<br>Compilation failed in require at script/addressbook_server.pl line 53."<br></td></tr></tbody></table></blockquote></div><br><div>You don't seem to have the Model you configured the session store to use. Do you have the MyApp/Model/DBIC/Session.pm file?</div><div><br></div><div><br></div><div>- andreas</div></div></blockquote></td></tr></table><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>