<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'>The only Session.pm is found in /AddressBook/Schema.&nbsp; 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.&nbsp; <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__-&gt;load_components(qw/Core/);<br>__PACKAGE__-&gt;table('sessions');<br>__PACKAGE__-&gt;add_columns(<br>&nbsp; id =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { data_type =&gt; "CHAR", is_nullable =&gt; 0, size =&gt; 72 },<br>&nbsp; session_data =&gt; { data_type =&gt; "TEXT", is_nullable =&gt; 1, size =&gt; undef },<br>&nbsp;
 expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; { data_type =&gt; "INTEGER", is_nullable =&gt; 1, size =&gt; undef}<br>);<br>__PACKAGE__-&gt;set_primary_key('id');<br>1;<br>-----------------------------------<br><br>--- On <b>Fri, 5/9/08, Andreas Marienborg <i>&lt;omega@palle.net&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Andreas Marienborg &lt;omega@palle.net&gt;<br>Subject: Re: [Catalyst] session in DB example in Catalyst book<br>To: archan2000@yahoo.com, "The elegant MVC web framework" &lt;catalyst@lists.scsys.co.uk&gt;<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>