[Catalyst] session in DB example in Catalyst book

Jonathan Rockway jon at jrock.us
Sun May 11 02:43:05 BST 2008

* On Sat, May 10 2008, Andreas Marienborg wrote:
> On May 10, 2008, at 3:53 AM, Andrew wrote:
>     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.
>     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:
>     "Couldn't find a model named DBIC::Session at /usr/local/share/perl/5.8.8/
>     Catalyst/Plugin/Session/Store/DBIC.pm line 143.
>     Compilation failed in require at script/addressbook_server.pl line 53."
> 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?

You shouldn't need that.  The DBIC::Schema model will create all the
classes under the root namespace from the result source classes in the
DBIC schema.

However, I think the namespace in the book is AddressDB, not DBIC.

Jonathan Rockway

print just => another => perl => hacker => if $,=$"

More information about the Catalyst mailing list