Hello, Dermot and Alejandro, Thanks for your help. Yes, they are very good hints :) I tried them and I learnt more about the Catalyst framework.
I looked at how I executed the script and I think I figured out why. I ran myApp_create.pl within the "script" subdirectory. For some reason, the files are not generated in the right places. I have reexecuted myApp_create.pl from outside 'scripts' and am now getting another error (which I think is trivial) when I run myApp_server.pl In short: Never ever myApp_create.pl in the "scripts" directory level. Don't know why it is such (which I think is silly cause we should be able to run the any damn script in the directory level which it is made in without problems). Ta! K. akimoto Quoting Dermot <[email protected]>: > 2009/2/18 <[email protected]>: > > Hello Dermot, > > > > sorry, you're right. > > Yes, I could not find myAppDB::Listing myself. > > > > I ran the following command for generating the static schema > manually. > > > > " myApp_create.pl model myAppDB DBIC::Schema myApp::Schema > create=static > > dbi:Pg:dbname=myApp myAdminUser mypassword" > > > > > > Where in catalyst do we get Catalyst to recognise all the static > files > > found under "Schema" ? > > In "lib/myApp/Model/DB.pm" > > > It should look something like: > > __PACKAGE__->config( > schema_class => 'myApp::myAppDB', > ... > > > Your command says "Create a schema under the directory 'myAppDB', so > they should be under > > lib/myApp/myAppDB/ > > They probably are there as *.new (as Alejandro says) > > This whole issue can be quickly resolved if you can search/grep > through the files in ~/Controller/* and/or ~/myAppDB/* to find out > how is trying to use "Listing.pm". Does you this table exist in you > DB? > > Good luck, you'll get there eventually :) > Dp. > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > > > _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
