[Catalyst] Config problem with C::P::A::S::LDAP under mod_perl
Scott Karns
scottkinsf at yahoo.com
Wed Mar 22 17:40:20 CET 2006
--- Scott Karns <scottkinsf at yahoo.com> wrote:
>
>
> --- Adam Jacob <adam at stalecoffee.org> wrote:
>
> > On Mar 21, 2006, at 10:21 AM, Scott Karns wrote:
> > > [error] Can't use an undefined value as a HASH
> > > reference at
> > >
> >
> >
> I'm sure there's a problem with $c->config. I
> haven't
> yet found out why it's different when running with
> the
> built-in server vs. apache2.
>
Adam,
Sorry send you on a wild goose chase looking for a
problem in C::P::A::S::LDAP. It turns out that the
issue is in C::P::ConfigLoader. I had assumed (yeah,
yeah, I know!) that ConfigLoader would determine the
absolute path to my config file from its knowledge of
the location of my app -- wrong! If I change the line
in my application module:
__PACKAGE__->config( file => 'quota_report.yaml' );
to:
__PACKAGE__->config( file =>
'/usr/local/pqv/quota_report.yaml' );
my application gets a bit farther down the road to
working with apache2/mod_perl2, which is to say it no
longer has the original problem.
Is there a reason ConfigLoader is silent (and doesn't
generate an exception) when it fails to locate the
supplied file?
My problem is that now I get the following error:
[error] Caught exception in engine "Can't locate
object method "ok_constant" via package
"Catalyst::Engine::Apache" a
t
/usr/lib/perl5/vendor_perl/5.8.7/Catalyst/Engine/Apache.pm
line 169." So I'm just starting to track that one
down.
Thank you, Adam, for your help.
-Scott
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Catalyst
mailing list