 |
Forums |
Admin Start New Thread
By: Vivek Pandey
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ] 2009-12-22 21:50
|
Looks like preload_frameworks is not there is Rails 2.2.2. I am not sure whats going on. We test gem with different Rails version (1.2.6 to the latest Rails).
Looks like there is some mixup in the environment. BTW which NB version you are using? Is it possible for you to use CLI just to isolate any NB related issue.
|
By: Michael Fromin
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ] 2009-12-22 21:38
|
Adding a Sym Link now gets me a new error in the Rails Development Log:
SEVERE: undefined local variable or method `preload_frameworks' for #<Rails::Configuration:0x594a3da8>
from <script>:1
/Users/mfromin/JRuby/jruby-1.4.0/lib/ruby/gems/1.8/gems/glassfish-1.0.2-universal-java/lib/jruby/rails_path.rb:5:in `threadsafe?': undefined local variable or method `preload_frameworks' for #<Rails::Configuration:0x594a3da8> (NameError)
from <script>:1
...internal jruby stack elided...
from Rails::Configuration.threadsafe?(<script>:1)
from (unknown).(unknown)(:1)
|
By: Vivek Pandey
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ] 2009-12-22 20:25
|
glassfish_rails script was there in ver 0.9.5 and removed in 1.0.0 release. Looks like something in NB looking for the deprecated glassfish_rails startup script.
The correct startupscript would be jruby-1.4.0/bin/glassfish
A workaround will be to create a symbolic link:
ln -s /Users/mfromin/JRuby/jruby-1.4.0/bin/glassfish /Users/mfromin/JRuby/jruby-1.4.0/bin/glassfish_rails
|
By: Michael Fromin
Glassfish gem 1.0.1 error in NetBeans [ reply ] 2009-12-22 18:52
|
I have been using 0.9.5 for some time with a Ruby on Rails app w/o issue.
I updated to the 1.0.1 gem today. When I start the app now I see:
/Users/mfromin/JRuby/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems.rb:384:in `bin_path': can't find executable glassfish_rails for glassfish-1.0.1-universal-java (Gem::Exception)
from /Users/mfromin/JRuby/jruby-1.4.0/bin/glassfish_rails:19
And the app does not start. Any idea what I might need to do?
|
|
 |