Hello monks,
I have been trying to work my way through Jonathan Rockway's book "Catalyst: Accelerating Perl Web Application Development" and it has been a most painful experience. The database example in Chapter 2 will not render the TT template (see previous post: 828813). I spent a week trying to track down the error and finally gave up and moved on to Chapter 3. The "AddressBook" example generates the following error messages:

C:\AddressBook>perl script\addressbook_server.pl -d Couldn't instantiate component "AddressBook::Model::AddressDB", Couldn't load class (AddressBook::Schema::AddressDB) because: DBIx::Class::Schema::throw_exception(): DBIx::Class::Row::throw_except +ion():
Can't locate AddressBook/Schema/AddressDB/People.pm in @INC
(@INC contains: C:/AddressBook/script/../lib C:/Perl/site/lib C:/Perl/ +lib .) at C:/Perl/site/lib/Class/C3/Componentised.pm line 135.

The "C:/AddressBook/script/../lib" entry in @INC is the top level path for the directory where "People.pm" resides, but the app cannot locate the module within the code structure generated by Catalyst.

I'm beginning to think that so much has changed since the book was written in 2007 that none of the examples may be valid any longer. This is definitely NOT the best environment for someone trying to learn Catalyst. I have heard so many glowing comments about how great Catalyst is and how easy it makes web app development, but all that is starting to grow dim in the face of errors that are buried deep in Catalyst (or DBIx::Class or Template Toolkit).

I am posting the above error messages in hopes that someone who has trodden this way before may have a clue how to resolve them. I really want to learn Catalyst, but maybe this is not the best route to go.

Thank you for any insight you can provide.

"Its not how hard you work, its how much you get done."


In reply to Catalyst by the Book- The Train Wreck Continues by roho

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.