Hello, I''ve been working away to setup mongrel as my production server, however I am running into an odd problem and am not sure where to investigate for the answer. When I run using mongrel_rails start most things work fine, but a I get a few inexplicable undefined method errors, for example: undefined method `send_qbxml'' for #<Sync:0x2aaaafa7aa78> The method is definitley there, and can be accessed from console. Further, I tried running with webrick, and it worked as expected. I tried lightty and it worked. I am hoping to both get this working, and understand why such an error would occur. Does anyone have any suggestions? Thanks a lot, Michael Fairchild -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061031/5ff8c737/attachment.html
In your application do you have a class called Sync with a method called send_qbxml? Mongrel uses Sync from the Ruby Std Lib. It looks to me that you have a name collision here. Erik On Oct 31, 2006, at 12:48 PM, Michael Fairchild wrote:> Hello, > I''ve been working away to setup mongrel as my production server, > however I am running into an odd problem and am not sure where to > investigate for the answer. > > When I run using mongrel_rails start most things work fine, but a > I get a few inexplicable undefined method errors, for example: > undefined method `send_qbxml'' for #The method is definitley there, > and can be accessed from console. Further, I tried running with > webrick, and it worked as expected. I tried lightty and it worked. > > I am hoping to both get this working, and understand why such an > error would occur. Does anyone have any suggestions? > > Thanks a lot, > > Michael Fairchild > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
On Oct 31, 2006, at 9:48 AM, Michael Fairchild wrote:> Hello, > When I run using mongrel_rails start most things work fine, but a > I get a few inexplicable undefined method errors, for example: > undefined method `send_qbxml'' for #<Sync:0x2aaaafa7aa78> The method > is definitley there, and can be accessed from console. Further, I > tried running with webrick, and it worked as expected. I tried > lightty and it worked.Zed is using the Sync class from the Standard Library and you are using a class also named Sync. Those wont play well together. Your best bet would be to rename your class to something that doesn''t exist in the Ruby libraries and watch out for that in the future. Michael-
On 10/31/06, Michael Fairchild <rmdf at stimble.net> wrote:> Hello, > I''ve been working away to setup mongrel as my production server, however I > am running into an odd problem and am not sure where to investigate for the > answer. > > When I run using mongrel_rails start most things work fine, but a I get a > few inexplicable undefined method errors, for example: > undefined method `send_qbxml'' for #<Sync:0x2aaaafa7aa78> > The method is definitley there, and can be accessed from console. Further, > I tried running with webrick, and it worked as expected. I tried lightty > and it worked. >Thats because naming clashes... try put your Sync class implementation inside a module, that will clear the global namespace for the ruby standard Sync class. module MyApp class Sync ... end end In that way, both Sync will co exist friendly, and to call your Sync class you will need to do: MyApp::Sync instead of plain "Sync".> I am hoping to both get this working, and understand why such an error would > occur. Does anyone have any suggestions? >Hope that clears the image about the issue.> Thanks a lot, > > Michael Fairchild > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > >-- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Possibly Parallel Threads
- err:ntdll:RtlpWaitForCriticalSection section 0x608121a0 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 000c, blocked by 000b, retrying (60 sec)
- mongrel served from a subdirectory
- why is webrick running in development mode?
- [OT] I Finally Got an Atom Feed
- File listing problems in 3.0.13