[Catalyst] using Catalyst::Model::CDBI

Alan Humphrey alan.humphrey at comcast.net
Thu Mar 31 01:03:24 CEST 2005


They're very ordinary.  A key and a half dozen or so columns.  In
researching this a bit more I don't think we're even getting to the
database.  When I start the server I see this:

[Wed Mar 30 14:45:33 2005] [catalyst] [debug] Debug messages enabled
[Wed Mar 30 14:45:33 2005] [catalyst] [debug] Loaded engine
"Catalyst::Engine::Server"
Use of uninitialized value in string eq at
/usr/pkg/lib/perl5/site_perl/5.8.6/Class/DBI/Loader.pm line 74, <DATA>
line 11.
Use of uninitialized value in concatenation (.) or string at
/usr/pkg/lib/perl5/site_perl/5.8.6/Class/DBI/Loader.pm line 75, <DATA>
line 11.
[Wed Mar 30 14:45:33 2005] [catalyst] [debug] Couldn't load tables
"Can't locate object method "new" via package "Class::DBI::Loader::"
(perhaps you forgot to load "Class::DBI::Loader::"?) at
/usr/pkg/lib/perl5/site_perl/5.8.6/Class/DBI/Loader.pm line 77, <DATA>
line 11.
"
Couldn't instantiate "BirdWeb::Admin::M::BirdWebDB", "Can't call method
"classes" on an undefined value at
/usr/pkg/lib/perl5/site_perl/5.8.6/Catalyst/Model/CDBI.pm line 61,
<DATA> line 11.
" at /usr/pkg/lib/perl5/site_perl/5.8.6/Catalyst/Engine.pm line 739
[Wed Mar 30 14:45:33 2005] [catalyst] [debug] Initialized components ""

It looks like the dsn isn't being passed all the way down to Loader.

-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Eugene Eric Kim
Sent: Wednesday, March 30, 2005 2:31 PM
To: catalyst at lists.rawmode.org
Subject: Re: [Catalyst] using Catalyst::Model::CDBI

On Wed, Mar 30, 2005 at 02:32:13PM -0800, Alan Humphrey wrote:

> I must be missing something obvious.  I'm trying to follow the
examples
> given in the Intro document to set up my model class.  I think I've
got
> everything set up the way the doc shows, but it doesn't work.

What do your tables look like?

-Eugene

-- 
======================================================================
Eugene Eric Kim ......................... http://public.xdi.org/=eekim
Blue Oxen Associates ........................ http://www.blueoxen.org/
======================================================================

_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst




More information about the Catalyst mailing list