Chris,

In the $interp->exec() call, Mason is looking for /root/mason/root/ mason/a.mas, since the resolver will search for /root/mason/a.mas within the component root. You probably meant to say $interp->exec('/ a.mas').

Derek


On 2 Jan 2006, at 04:23 , [EMAIL PROTECTED] wrote:

[...]
m.pl
------
use strict;
use HTML::Mason;
my $outbuf;
my $interp = HTML::Mason::Interp->new
   (comp_root  => "/root/mason/",
        data_dir   => "/root/mason/",
        out_method => \$outbuf);
$interp->exec ("/root/mason/a.mas");


after "perl m.pl" I get:
---------------------------
> perl m.pl
could not find component for initial path '/root/mason/ a.mas' (component roots are: '/root/mason')
Stack:
 [/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm:204]
 [/usr/local/lib/perl5/site_perl/5.8.4/Class/Container.pm:275]
 [/usr/local/lib/perl5/site_perl/5.8.4/Class/Container.pm:353]
 [/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Interp.pm:329]
 [/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Interp.pm:323]
 [m.pl:11]




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to