Yes.

The problem is Apache2::Const doesn't import anything by
default and PerlModule doesn't allow us to add import list like 'use'
do. This doesn't work:

PerlModule Apache2::Const qw(HTTP_NOT_FOUND)

PerlModule would treat qw(HTTP_NOT_FOUND) as the second module and try to find 
qw(HTTP_NOT_FOUND).pm and failed miserably.

1/11/2007
------------------------------------------------------------
I tried another way today. It works.
I added a line in the startup.pl instead of httpd.conf:

use Apache2::Const 'HTTP_NOT_FOUND';

Thanks!
1/12/2007


----- Original Message ----
From: brett gardner <[EMAIL PROTECTED]>
To: C Kang <[EMAIL PROTECTED]>
Cc: mason-users@lists.sourceforge.net
Sent: Thursday, January 11, 2007 4:37:44 PM
Subject: Re: [Mason] Apache::Constants::NOT_FOUND is not available any more

Did you include the module in your httpd.conf file?

ie

PerlModule Apache2::Const;



C Kang wrote:
> Hi,
>
> I'm recently porting code from Apache 1.xx/mod_perl 1.xx to Apache 
> 2.xx/mod_perl 2.xx. Mason version is 1.35.
>
> <LocationMatch "(\.m(html|txt|pl)|dhandler|autohandler)$">
>     SetHandler perl-script
>     PerlInitHandler Apache::Constants::NOT_FOUND
> </LocationMatch>
>
> The above didn't work any more because Apache::Constants::NOT_FOUND is 
> replaced by Apache2::Const::HTTP_NOT_FOUND, but this doesn't work either,
>
>     PerlInitHandler Apache2::Const::HTTP_NOT_FOUND
>
> [error] Can't locate Apache2/Const/NOT_FOUND.pm in @INC (@INC 
> contains:  /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi ...
>
> Any suggestion, workaround, or comment? Thanks in advance.
>
>
> ------------------------------------------------------------------------
> Check out the all-new Yahoo! Mail beta 
> <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>
>  
> - Fire up a more powerful email and get things done faster.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>   







 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to