|
The DocumentRoot is actually outside of Mason's control. Document root is /Public/apache, but Mason apps live under /Public/mason and are configured with blocks such as:
PerlSetVar MasonCompRoot /Public/mason
Alias /beerdb/ /Public/mason/beerdb/
<Location /beerdb/>
SetHandler perl-script
PerlHandler BeerDB
# other Locations use PerlHandler HTML::Mason::ApacheHandler
</Location>
could that be a problem for MasonX::Maypole?
I have tried putting the factory templates in both /Public/apache/maypole and /Public/mason/maypole and adjusting the comp_root [ [ factory=> ... ] ] accordingly, but in both instances i get:
...
could not find component for path 'beerdb/beer/list'
Trace begun at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 996
HTML::Mason::Request::comp('MasonX::Request::ExtendedCompRoot=HASH(0x85d97ec)', 'beerdb/beer/list')
+ called at /Public/apache/maypole/dhandler line 1
BeerDB::__ANON__ at /usr/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 136
(or called at /Public/mason/maypole/dhandler, in the other case)
|