[Dancer-users] Dancer, Apache & Mason deployment problem
Stephen Fenwick-Paul
stephen at activeg.org
Wed Jun 29 17:16:09 CEST 2011
Hi,
I'm new to Dancer and having moved from HTML::Mason I'm much impressed, but
I'm having deployment problems.
This is my apache.conf
PerlModule Dancer::Template::Mason2
<VirtualHost *:80>
DocumentRoot path_t_app
ServerName www.test.new
<Location />
SetHandler perl-script
PerlHandler Plack::Handler::Apache2
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app path_to_app/bin/app.pl
</Location>
</VirtualHost>
Nothing unusual in Apache logs on start up.
But when access the site I get:
* CODE(0x7f7bdc4aba50) not memoized at /usr/share/perl/5.10/Memoize.pm line
204.*
/usr/share/perl/5.10/Memoize.pm around line 204
201 sub flush_cache {202 my $func = _make_cref($_[0], scalar
caller);203 my $info = $memotable{$revmemotable{$func}};204 die
"$func not memoized" unless defined $info;205 for my $context (qw(S
L)) {206 my $cache = $info->{$context};207 if (tied %$cache &&
! (tied %$cache)->can('CLEAR')) {
Stack
main in -e l. 0
main in -e l. 0
Plack::Handler::Apache2 in
/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm l. 86
Plack::Handler::Apache2 in
/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm l. 65
Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 102
Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 71
Dancer::Handler in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 87
Dancer::Object in /usr/local/share/perl/5.10.1/Dancer/Object.pm l. 15
Dancer::Error in /usr/local/share/perl/5.10.1/Dancer/Error.pm l. 34
Dancer::Error in /usr/local/share/perl/5.10.1/Dancer/Error.pm l. 248
In standalone mode and using apache as local proxy everything works fine.
If I remove "PerlModule Dancer::Template::Mason2" from the config, the
server starts, the web apage partially renders but I get:
"unknown template engine 'mason2', perhaps you need to install
Dancer::Template::Mason2? at /usr/local/share/perl/5.10.1/Dancer/Template.pm
line 17"
I have latest version of Dancer & Mason modules.
Does any one understand what I'm doing wrong?
Thanks
Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110629/cf98ea67/attachment.htm>
More information about the Dancer-users
mailing list