FAQ
Be sure your (Moose) modules are up to date.

Run moose-outdated from the commandline, it will show you which Moose(X)
modules need to be updated.

Op 10-7-2011 7:36, Charlie Gonzalez schreef:
Hello,

I am receiving the following error message while starting my dev
server enviroment:


cgonzalez@cgonzalez-laptop:~/Addressit/script$ perl
Addressit_server.pl -r
The alias and excludes options for role application have been renamed
-alias and -excludes (CatalystX::Component::Traits is consuming
MooseX::Traits::Pluggable - do you need to upgrade
CatalystX::Component::Traits?) at
/usr/share/perl5/CatalystX/Component/Traits.pm line 8
require CatalystX/Component/Traits.pm called at
/usr/lib/perl5/Class/MOP.pm line 114
Class::MOP::__ANON__() called at /usr/share/perl5/Try/Tiny.pm line 71
eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0xaeba630)', 'Try::Tiny::Catch=REF(0xaf4d7b8)')
called at /usr/lib/perl5/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('CatalystX::Component::Traits')
called at /usr/lib/perl5/Class/MOP.pm line 137
Class::MOP::load_class('CatalystX::Component::Traits', undef) called
at /usr/lib/perl5/Moose/Util.pm line 113
Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0xaeba840)',
undef, 'CatalystX::Component::Traits') called at
/usr/lib/perl5/Moose/Util.pm line 91
Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0xaeba840)',
'CatalystX::Component::Traits') called at /usr/lib/perl5/Moose.pm line 58
Moose::with('Moose::Meta::Class=HASH(0xaeba840)',
'CatalystX::Component::Traits') called at
/usr/lib/perl5/Moose/Exporter.pm line 359
Moose::with('CatalystX::Component::Traits') called at
/usr/share/perl5/Catalyst/Model/DBIC/Schema.pm line 6
require Catalyst/Model/DBIC/Schema.pm called at (eval 542) line 3
eval 'require Catalyst::Model::DBIC::Schema
;' called at /usr/share/perl/5.10/base.pm <http://base.pm> line 90
base::import('base', 'Catalyst::Model::DBIC::Schema') called at
/home/cgonzalez/Addressit/script/../lib/Addressit/Model/AddressitDB.pm
line 4
Addressit::Model::AddressitDB::BEGIN() called at
/usr/share/perl5/CatalystX/Component/Traits.pm line 0
eval {...} called at /usr/share/perl5/CatalystX/Component/Traits.pm line 0
require Addressit/Model/AddressitDB.pm called at
/usr/share/perl5/Catalyst/Utils.pm line 287
eval {...} called at /usr/share/perl5/Catalyst/Utils.pm line 287
Catalyst::Utils::ensure_class_loaded('Addressit::Model::AddressitDB',
'HASH(0xadf2668)') called at /usr/share/perl5/Catalyst.pm line 2438
Catalyst::setup_components('Addressit') called at
/usr/share/perl5/Catalyst.pm line 1171
Catalyst::setup('Addressit') called at
/home/cgonzalez/Addressit/script/../lib/Addressit.pm line 45
require Addressit.pm called at /usr/lib/perl5/Class/MOP.pm line 114
Class::MOP::__ANON__() called at /usr/share/perl5/Try/Tiny.pm line 71
eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0xac1b2d8)', 'Try::Tiny::Catch=REF(0xac304b8)')
called at /usr/lib/perl5/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Addressit') called at
/usr/lib/perl5/Class/MOP.pm line 137
Class::MOP::load_class('Addressit') called at
/usr/share/perl5/Catalyst/ScriptRole.pm line 48
Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 142
Catalyst::Script::Server::__ANON__() called at
/usr/share/perl5/Catalyst/Restarter/Forking.pm line 20
Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Restarter.pm line 89
Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 176
Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/ScriptRunner.pm line 20
Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Addressit',
'Server') called at Addressit_server.pl line 8
Couldn't load class (Addressit) because: Couldn't instantiate
component "Addressit::Model::AddressitDB", "Attribute (schema_class)
is required at /usr/lib/perl5/Class/MOP/Class.pm line 603
Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0xafe6830)',
'HASH(0xb0399a8)') called at /usr/lib/perl5/Class/MOP/Class.pm line 576
Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0xafe6830)',
'HASH(0xb0399a8)') called at /usr/lib/perl5/Moose/Meta/Class.pm line 256
Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0xafe6830)',
'HASH(0xb0399a8)') called at /usr/lib/perl5/Moose/Object.pm line 26
Moose::Object::new('Addressit::Model::AddressitDB', 'Addressit',
'HASH(0xaf8e218)') called at generated method (unknown origin) line 3
Catalyst::Model::DBIC::Schema::new('Addressit::Model::AddressitDB',
'Addressit', 'HASH(0xaf8e218)') called at
/usr/share/perl5/MooseX/Traits/Pluggable.pm line 139
MooseX::Traits::Pluggable::_build_instance_with_traits('Addressit::Model::AddressitDB',
'Addressit::Model::AddressitDB', 'Addressit') called at
/usr/share/perl5/MooseX/Traits/Pluggable.pm line 97
MooseX::Traits::Pluggable::new_with_traits('Addressit::Model::AddressitDB',
'Addressit', 'HASH(0xb039b08)') called at
/usr/share/perl5/CatalystX/Component/Traits.pm line 145
CatalystX::Component::Traits::COMPONENT('Addressit::Model::AddressitDB',
'Addressit', 'HASH(0xb039a98)') called at
/usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 48
Class::MOP::Method::Wrapped::__ANON__('Addressit::Model::AddressitDB',
'Addressit', 'HASH(0xb039a98)') called at
/usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 89
Catalyst::Model::DBIC::Schema::COMPONENT('Addressit::Model::AddressitDB',
'Addressit', 'HASH(0xb039a98)') called at /usr/share/perl5/Catalyst.pm
line 2515
eval {...} called at /usr/share/perl5/Catalyst.pm line 2515
Catalyst::setup_component('Addressit',
'Addressit::Model::AddressitDB') called at
/usr/share/perl5/Catalyst.pm line 2442
Catalyst::setup_components('Addressit') called at
/usr/share/perl5/Catalyst.pm line 1171
Catalyst::setup('Addressit') called at
/home/cgonzalez/Addressit/script/../lib/Addressit.pm line 45
require Addressit.pm called at /usr/lib/perl5/Class/MOP.pm line 114
Class::MOP::__ANON__() called at /usr/share/perl5/Try/Tiny.pm line 71
eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0xac1b2d8)', 'Try::Tiny::Catch=REF(0xac304b8)')
called at /usr/lib/perl5/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Addressit') called at
/usr/lib/perl5/Class/MOP.pm line 137
Class::MOP::load_class('Addressit') called at
/usr/share/perl5/Catalyst/ScriptRole.pm line 48
Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 142
Catalyst::Script::Server::__ANON__() called at
/usr/share/perl5/Catalyst/Restarter/Forking.pm line 20
Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Restarter.pm line 89
Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 176
Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/ScriptRunner.pm line 20
Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Addressit',
'Server') called at Addressit_server.pl line 8"Compilation failed in
require at /usr/lib/perl5/Class/MOP.pm line 114.
at /usr/lib/perl5/Class/MOP.pm line 120
Class::MOP::__ANON__('Couldn\'t instantiate component
"Addressit::Model::AddressitD...') called at
/usr/share/perl5/Try/Tiny.pm line 100
Try::Tiny::try('CODE(0xac1b2d8)', 'Try::Tiny::Catch=REF(0xac304b8)')
called at /usr/lib/perl5/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Addressit') called at
/usr/lib/perl5/Class/MOP.pm line 137
Class::MOP::load_class('Addressit') called at
/usr/share/perl5/Catalyst/ScriptRole.pm line 48
Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 142
Catalyst::Script::Server::__ANON__() called at
/usr/share/perl5/Catalyst/Restarter/Forking.pm line 20
Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Restarter.pm line 89
Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0xac1a550)')
called at /usr/share/perl5/Catalyst/Script/Server.pm line 176
Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0xa7fcd80)')
called at /usr/share/perl5/Catalyst/ScriptRunner.pm line 20
Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Addressit',
'Server') called at Addressit_server.pl line 8

I am presently learning how to use Catalyst and you can find a copy
of the code in this repo: ( https://github.com/itcharlie/Addressit ).

This is basically same program example from the Apress Catalyst book
with a few changes.

--
Charlie Gonzalez
(E) itcharlie@gmail.com http://itcharlie.blogspot.com/
https://github.com/itcharlie <https://github.com/itcharlie>


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

--
Christiaan Kras
http://blog.htbaa.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110710/89098542/attachment.htm

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 11 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJul 10, '11 at 5:36a
activeJul 21, '11 at 5:17a
posts11
users7
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase