Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Vivek Pandey
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2010-01-14 04:06
This issue is fixed in 1.0.3.dev. I have added a testcase and it is passing, see http://bit.ly/4EJ8N9. You can try 1.0.3.dev from, http://hudson.glassfish.org/job/glassfish-gem-build/ and let me know how it works.

By: Topper Bowers
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2010-01-14 03:19
see my comments on the bug: http://rubyforge.org/tracker/index.php?func=detail&aid=27615&group_id=5450&atid=21080

Related to rails 2.2.2 not supporting the new config option "preload_frameworks"

By: Vivek Pandey
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2009-12-23 17:11
This looks like a bug. Can you open an issue?

By: Michael Fromin
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2009-12-23 02:35
Same error in the logs even with the CLI invocation.


By: Vivek Pandey
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2009-12-22 22:17
I was wondeirng if you could try out running glassfish gem from command line from inside your application directory:

$ jruby -S glassfish -l

By: Michael Fromin
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2009-12-22 21:58
I am using NetBeans 6.7.1 on Mac OS X. JRuby 1.4.0 and Rails 2.2.2.

I am not sure what you mean by using CLI - what are you asking me to do?

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
RE: Glassfish gem 1.0.1 error in NetBeans [ reply ]  
2009-12-22 18:53
I am using JRuby 1.4.0 and RoR 2.2.2 if that makes any difference.

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?