[EMAIL PROTECTED] wrote:
  Hi,
    I have the following error while running mod_perl chrooted
which I would appreciate suggestions.
[Sat Feb  8 08:58:30 2003] [error] Can't locate Apache/Test.pm in @INC (@INC contains: /var/www/lib/perl
+/var/www/lib/perl/Apache [...] . /var/www/) at (eval 299) line 3 during global destruction.

[Sat Feb  8 08:58:30 2003] [error] Undefined subroutine &Apache::Test::handler called at PerlHandler subroutine
+`Apache::Test' line 1 during global destruction.

ls -la /var/www/lib/perl/Apache
total 10
drwxr-xr-x  2 root  daemon   512 Feb  8 09:05 .
drwxr-xr-x  3 root  daemon   512 Feb  8 09:05 ..
-r--r--r--  1 root  daemon  7822 Feb  8 08:44 Test.pm
Because there is Apache::Test from the test suite (which doesn't have a function called 'handler') installed under @INC, and it probably happens to get loaded before your Apache::Test. Rename your package and it'll probably just work.

[p.s. it's a good practice not to hit reply on another thread's message, but to start a new mail when you start a new thread, otherwise you mess up the previous thread and the current one.]

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to