Re: [Jruby-devel] First error with script/server.

2006-06-13 Thread Thomas E Enebo
When I was playing with this stuff I just added the extra arg of the server I wanted started: jruby script/server webrick -Tom On Tue, 13 Jun 2006, Charles O Nutter defenestrated me: > >With the fastcgi nonsense commented out, the fcntl patch, and the >Socket/BasicSocket thing fixed,

Re: [Jruby-devel] First error with script/server.

2006-06-13 Thread Charles O Nutter
With the fastcgi nonsense commented out, the fcntl patch, and the Socket/BasicSocket thing fixed, script/server starts up and successfully serves the index page!!!And then it stops doing anything.But it's close! => Booting WEBrick...=> Rails application started on http://0.0.0.0:3000=> Ctrl-C to sh

Re: [Jruby-devel] First error with script/server.

2006-06-13 Thread Charles O Nutter
Fixed. SocketMetaClass needed the following:- extend BasicSocketMetaClass- pass the BasicSocket rubyclass as parentSocketLibrary needed to reorder creation of BasicSocketMetaClass and SocketMetaClass so Socket could extend BasicSocket. The extension in the .rb file doesn't work unless the classes a

Re: [Jruby-devel] First error with script/server.

2006-06-13 Thread Charles O Nutter
Perhaps this has something to do with it:irb(main):014:0> Socket.superclass=> ObjectNow we just need to figure out why that's happening :)On 6/13/06, Charles O Nutter <[EMAIL PROTECTED]> wrote: The Socket/BasicSocket dichotomy is certainly an interesting issue. It doesn't seem to be a simple issue

Re: [Jruby-devel] First error with script/server.

2006-06-13 Thread Charles O Nutter
The Socket/BasicSocket dichotomy is certainly an interesting issue. It doesn't seem to be a simple issue of singleton methods, since File's singleton methods work fine in extending classes:class F < Fileend F.dirnameĀ  => wrong number of arguments (i.e. it's finding it ok)So there's something odd ab

[Jruby-devel] First error with script/server.

2006-06-13 Thread Ola Bini
Well, so I've found the first thing that's a problem with script/server, at least on my win32-box. The server script first tries to determine which server to use. It does this by all different manners of fun tricks. This one: if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }