Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Brasten Sager
RE: Missing require 'fileutils' [ reply ]  
2010-05-28 16:03
I ran into the same problem... in my case, I was missing the "log" directory. I assume the GlassFish gem was trying to create it and running into this problem. When I created the log directory manually, everything worked.

This may or may not help anyone, but there ya go.

By: Andreas Ronge
Missing require 'fileutils' [ reply ]  
2010-04-06 17:55
When running glassfish on the following rackup file:

run lambda {|env| [200, {"Content-Type" => "text/html"}, env.inspect]}

it gives me:

/home/andreas/software/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/config.rb:74:in `const_missing': uninitialized constant GlassFish::Config::FileUtils (NameError)
from /home/andreas/software/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/config.rb:154:in `validate!'
from /home/andreas/software/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/server.rb:145:in `start'
from /home/andreas/software/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/bin/glassfish:55
from /home/andreas/software/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/bin/glassfish:19:in `load'
from /home/andreas/software/jruby-1.4.0/bin/glassfish:19

When looking in the config.rb it only requires the 'ftools' library and not the 'fileutils' - which must be a bug ?

The strange thing is that I had it working on my machine and I don't know why it stopped working, could it be that rack already included the fileutils or something like that ?