[Catalyst] MojoMojo example - errors with database tables

David Naughton naughton at umn.edu
Sat Mar 19 16:22:47 CET 2005


Hello, Uwe,

I'm one of the committers for MojoMojo, and I've seen these errors
multiple times. We need to patch MojoMojo and/or Catalyst to generate
more helpful errors in these cases. (Patches welcome! :) The errors
probably indicate one or both of the following:

1. You don't have CDBI::SQLite and/or CDBI::Loader::SQLite installed.
2. There are problems with the files in your $HOME/.mojomojo directory.

In your case I suspect 2., and that you probably didn't know about the
.mojomojo dir. Notice lines 10 and 11 of lib/MojoMojo.pm:

MojoMojo->prepare_home();
MojoMojo->config( YAML::LoadFile(MojoMojo->home().'/mojomojo.yml') );

If you look at prepare_home, you'll notice that it creates .mojomojo and
puts a mojomojo.yml in there, but it doesn't do much else. You'll need
to copy the contents of trunk/(db|root) to .mojomojo/(db|root). Notice
also that the paths to the templates and the db will be different than
what's in mojomojo.yml be default. You'll need to change one or the
other to sync them. 

Sorry about the confusion, but MojoMojo is a rapidly-moving target right
now.

HTH!
David Naughton

On Sat, Mar 19, 2005 at 01:25:49PM +0100, Uwe Voelker wrote:
> Hello,
> 
> I checked out the MojoMojo example.
> http://maypole.perl.org/repos/mojomojo/trunk
> 
> cd trunk
> script/server.pl brings the attached output.
> 
> I suspect something with the database is wrong. I have all the necessary
> modules installed (at least I hope so).
> 
> I have modified mojomojo.yml to contain my paths.
> 
> 
> What can I do next?
> 
> 
> Thank you,
> good bye, Uwe

> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Debug messages enabled
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::FormValidator"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::FillInForm"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::Session::FastMmap"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::Static"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::SubRequest"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded plugin "Catalyst::Plugin::Authentication::CDBI"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] Loaded engine "Catalyst::Engine::CGI"
> Subroutine Catalyst::Log::info redefined at /home/uwe/trunk/script/../lib/MojoMojo.pm line 143.
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Jsrpc" defined ".jsrpc/render" as "CODE(0x897bec4)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Jsrpc" defined ".jsrpc/diff" as "CODE(0x897d984)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Jsrpc" defined ".jsrpc/tag" as "CODE(0x897db58)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Jsrpc" defined ".jsrpc/untag" as "CODE(0x8983450)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::User" defined ".login" as "CODE(0x89886dc)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::User" defined ".logout" as "CODE(0x89857ec)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/tags" as "CODE(0x898a630)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/print" as "CODE(0x89b12b4)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/view" as "CODE(0x8986744)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/highlight" as "CODE(0x8a00088)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined ".list" as "CODE(0x898a7d4)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined ".recent" as "CODE(0x8a002bc)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/edit" as "CODE(0x89889ac)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/rss" as "CODE(0x89dfd78)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Page" defined "!page/atom" as "CODE(0x89dfc64)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Journal" defined "!journal/default" as "CODE(0x898af78)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Tag" defined "!tag/list" as "CODE(0x8a07938)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Tag" defined "!tag/recent" as "CODE(0x8a09c7c)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Feeds" defined ".rss_full" as "CODE(0x8a06f68)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Feeds" defined ".feeds" as "CODE(0x8a06c2c)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Feeds" defined ".rss" as "CODE(0x8a06e78)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Feeds" defined ".atom" as "CODE(0x8a0dfbc)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Export" defined ".export" as "CODE(0x8a0e334)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Export" defined ".export.zip" as "CODE(0x8a06c98)"
> [Sat Mar 19 13:26:50 2005] [catalyst] [debug] "MojoMojo::C::Export" defined ".html.zip" as "CODE(0x8aa9ec8)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] Loaded tables ""
> Couldn't instantiate "MojoMojo::M::Core::User", "Can't locate object method "new" via package "MojoMojo::M::Core::User" at /usr/lib/perl5/site_perl/5.8.5/Module/Pluggable/Fast.pm line 83.
> " at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> Couldn't require "MojoMojo::M::Core::Page", "Can't locate object method "columns" via package "MojoMojo::M::Core::Page" at /home/uwe/trunk/script/../lib/MojoMojo/M/Core/Page.pm line 8.
> Compilation failed in require" at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> Couldn't instantiate "MojoMojo::M::Core::Page", "Can't locate object method "new" via package "MojoMojo::M::Core::Page" at /usr/lib/perl5/site_perl/5.8.5/Module/Pluggable/Fast.pm line 83.
> " at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> Couldn't require "MojoMojo::M::Core::Tag", "Can't locate object method "columns" via package "MojoMojo::M::Core::Tag" at /home/uwe/trunk/script/../lib/MojoMojo/M/Core/Tag.pm line 4.
> Compilation failed in require" at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> Couldn't instantiate "MojoMojo::M::Core::Tag", "Can't locate object method "new" via package "MojoMojo::M::Core::Tag" at /usr/lib/perl5/site_perl/5.8.5/Module/Pluggable/Fast.pm line 83.
> " at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> Couldn't require "MojoMojo::M::Core::Revision", "Can't locate object method "has_a" via package "MojoMojo::M::Core::Revision" at /home/uwe/trunk/script/../lib/MojoMojo/M/Core/Revision.pm line 13.
> Compilation failed in require" at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Engine.pm line 709
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] Initialized components " MojoMojo::C::Jsrpc MojoMojo::V::TT MojoMojo::C::Page MojoMojo::C::Tag MojoMojo::C::Journal MojoMojo::M::CDBI MojoMojo::C::User MojoMojo::M::Core::Revision MojoMojo::C::Feeds MojoMojo::C::Export"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined "!default" as "CODE(0x89007bc)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined "favicon.ico" as "CODE(0x89008e8)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined ".static" as "CODE(0x895da54)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined "!end" as "CODE(0x895fcac)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined "/^(\w[\w\/]+)\.(\w+)$/" as "CODE(0x895d790)"
> [Sat Mar 19 13:26:51 2005] [catalyst] [debug] "MojoMojo" defined "/^(\w[\w\/]+)$/" as "CODE(0x895d904)"

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




More information about the Catalyst mailing list