caffeine has asked for the wisdom of the Perl Monks concerning the following question:

Hi -

I'm new to Catalyst, and I'm having some trouble using the catalystapp_server.pl script: after I start it, and after I've browsed to a few pages in my app, I can't ctrl-c to exit. I can't use ctrl-Z or ctrl-D either. In addition, if I use the -r flag when I start the server (to make it restart when code changes), the server fails to restart. When code changes, I see it attempt to restart, but it fails. I end up having to start another session to kill the original process.

One clue seems to be that the server only gets into this state once I've visited a page that uses my DBIx::Class-based model. I'm using DBD::Oracle to connect to the database.

My code is fairly simple. Here's the handler from my controller:

sub list_schools : Local { my ($self, $c) = @_; my @schools = $c->model('CourseAPI::School')->all; $c->stash->{schools} = \@schools; $c->stash->{template} = 'list_schools.tt'; }
and here's my template:
<h1>list schools</h1> <ul> [% FOREACH school IN schools %] <li><a href="/courses/get_school/[% school.school_id %]">[% sc +hool.title_short %]</a></li> [% END %] </ul>

My model code is standard DBIx::Class; I'm not doing anything fancy or overriding anything.

Anyone know what's going on here? Let me know if there are more details that would be useful.

Thanks!