|
Re: Problem with Catalyst and Rose::DB: msg#00072lang.perl.modules.dbi.rose-db-object
On 6/23/06 12:25 PM, Evan Carroll wrote: > when I try to start the Catalyst server, I get: > > ecarroll@AMD64:/var/www/Dealermade$ perl script/dealermade_server.pl > Subroutine init_db redefined > at /var/www/Dealermade/script/../lib/Dealermade/M/Import/Import.pm line > 19. > Couldn't load "Dealermade::M::Import::Import", "Cannot create method > Import::Import::dns - method already exists > at /usr/local/share/perl/5.8.7/Rose/DB/Object/Metadata/MethodMaker.pm > line 420 That error suggests to me me that an RDBO class is being initialize()d twice. Are you using the new setup() method to set up your metadata? http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Metadata.pm#se tup If not, try it. It'll prevent your classes from being double-initialized even if they are loaded more than once (due to some other module messing with %INC or whatever) -John Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: default values, John Siracusa |
|---|---|
| Next by Date: | Re: default values, Jonathan Vanasco |
| Previous by Thread: | Re: default values, Jonathan Vanasco |
| Next by Thread: | Rose::DB and catalyst., Evan Carroll |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |