Weird thing. I just got Maypole working, almost, on top of an existing CDBI app. What's weird is that this works:
But when I get that exact url in the browser I get a Not Found from Apache. I can get the front page at /opera/ (I use the factory templates), but not click on the op_operator link to list it.perl -I../lib -MMaypole::CLI=Boss::Opera::Maypole::App -e1 "http://loc +alhost/opera/op_operator/list"
The access log:
127.0.0.1 - - [15/Feb/2005:21:26:51 +0100] "GET /opera/op_operator/lis +t HTTP/1.1" 404 329
The error log:
[Tue Feb 15 21:26:51 2005] [error] [client 127.0.0.1] File does not ex +ist: C:/.../source/web/htdocs/opera, referer: http://localhost/opera/
Versions:
This is my httpd.confMaypole 2.09 (reinstalled to make sure it wasn't a stale version like +last time) Apache/2.0.48 (Win32)
PerlRequire "C:/.../source/web/startup.pl" <Location /opera> SetHandler perl-script PerlHandler Boss::Opera::Maypole::App </Location>
This is my Maypole application class:
package Boss::Opera::Maypole::App; use Maypole::Application; use File::Spec; use File::Basename; use Data::Dumper; use Carp qw/ cluck /; use Boss::Opera::Operator; use Boss::Opera::ProductGroup; sub debug { 1; } __PACKAGE__->config->model("Maypole::Model::CDBI::Plain"); __PACKAGE__->setup([qw/ Boss::Opera::Operator Boss::Opera::ProductGrou +p /]); __PACKAGE__->config->application_name('Boss Opera Configuration Databa +se'); __PACKAGE__->config->uri_base("http://localhost/opera/"); __PACKAGE__->config->template_root(File::Spec->rel2abs(dirname(__FILE_ +_) . "/../../../../web/htdocs/templates")); __PACKAGE__->config->rows_per_page(10); __PACKAGE__->config->display_tables([qw/ op_operator op_product_group +/]); Boss::Opera::Operator->untaint_columns( printable => [qw/name/], integ +er => [qw/gs_operator_id/] );
As a long-shot I also put this in my Maypole app class:
warn("new parse_path\n"); sub parse_path { my $self = shift; cluck(Dumper($self, \@_)); $self->SUPER::parse_path(@_); }
The first warning turns up in the Apache console window, but not the "cluck Dumper". Both are visible when running it from the CLI. None of this shows up in Apache even when I successfully get the front page, so...
I tried to insert warnings in Maypole::handler also, nothing shows in the log, ever. I also found a mention in the list archives of the exception method in connection to getting 404:s, I overrode that one too but nothing turns up in the error log.
*sigh*
What is going on here? Any ideas? What should I poke at next?
/J - sooo close
In reply to Maypole::CLI works, but Apache says 404 by jplindstrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |