[Catalyst] App can't render Mason templates after moving to Apache

Andy Grundman andy at hybridized.org
Wed Dec 21 22:55:39 CET 2005


Mike Marcus wrote:
> Hello,
> 
> I created a Catalyst application which works fine on the test server.  
> When I tried to deploy it on Apache (using mod_perl), I'm able to  reach 
> the application fine in a browser. However, the app is unable  to find 
> the Mason templates, and I get the error screen with:
> "Couldn't render component "/testing.mas" - error was "could not find  
> component for initial path '/testing.mas".
> 
> It would seem like I need to change a  simple setting within the  
> application, but after reading over the documentation and searching  the 
> archives, I'm still not sure what to look for. As I'm still very  new to 
> this, I would appreciate any suggestions or links.

I've never used Mason myself, but it looks like your problem is that Catalyst 
can't determine the correct home directory for your app.  You can tell what Cat 
thinks your home is by leaving -Debug mode enabled and watching the startup 
output from Apache:
[catalyst] [debug] Found home "..."

Your template will then be searched for as $home/root/testing.mas

You might need to make sure you have a Makefile.PL file in your app's home 
directory.  It's used when in mod_perl mode so Cat can find the proper home dir.

-Andy



More information about the Catalyst mailing list