Issue Details (XML | Word | Printable)

Key: JRUBY-427
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Charles Oliver Nutter
Reporter: Ashish Sahni
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

JRuby on Rails 1.1.6 under GlassFish appears to try loading breakpoint library

Created: 10/Jan/07 01:00 PM   Updated: 30/Apr/07 03:12 AM   Resolved: 18/Apr/07 03:05 PM
Return to search
Component/s: None
Affects Version/s: JRuby 0.9.8
Fix Version/s: JRuby 0.9.8

Time Tracking:
Not Specified

File Attachments: 1. Java Archive File rails-module-0.3-MODIFIED-SNAPSHOT.jar (16 kB)
2. File start-main.sh (0.3 kB)

Environment: JRuby trunk version, GlassFish 9.1, Rails 1.1.6,


 Description  « Hide

null
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:84:in `require_association'
from /abc/jruby-src/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require_dependency'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:124:in `const_missing'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:75:in `reset_after_dispatch'
from /abc/jruby-src/jruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:46:in `dispatch'
from file:/home/ashish/gf91/glassfish/appserv-http-engine/modules/rails/rails-module-0.3-MODIFIED-SNAPSHOT.jar!/dispatch.rb:56
from :-1

1. Download the following
rails-module-0.3-MODIFIED-SNAPSHOT.jar
start-main.sh
2. Modify the CLASSPATH variable and JRUYB_BASE and the arg[0](RAILS_ROOT) to com.sun.grizzly.rails.standalone.Main in start-main.sh
3. If running in glassfish(ie using appserv-rt.jar as opposed to just the grizzly jar binary)then, supply the corrrect($INSTANCE_ROOT + /applications/rails will be the RAILS_ROOT) value for the system property -Dcom.sun.aas.instanceRoot, else arg[0] will be used as RAILS_ROOT
4. Run start-main.sh and send a request to port 8888



Ashish Sahni added a comment - 11/Jan/07 04:23 PM

Workaround this issue by configuring
config.breakpoint_server to false in #{RAILS_ROOT}/config/environments/development.rb


Charles Oliver Nutter added a comment - 12/Feb/07 02:11 PM

Updating title to better reflect the problem.


Charles Oliver Nutter made changes - 12/Feb/07 02:11 PM
Field Original Value New Value
Summary Unable to run Rails on JRuby JRuby on Rails 1.1.6 under GlassFish appears to try loading breakpoint library
Charles Oliver Nutter added a comment - 18/Apr/07 03:28 AM

This one needs a refresh...is it still happening? Why does the breakpoint server get loaded when running under the rails module but not under WEBrick? It seems like this could be a problem with how the rails module (and rails integration) handle development mode...some property or env var being set that shouldn't or something similar?

Marking as post-1.0 since there's no demonstrable flaw in anyhting JRuby's doing.


Charles Oliver Nutter made changes - 18/Apr/07 03:28 AM
Fix Version/s JRuby 1.x [ 13421 ]
Ashish Sahni added a comment - 18/Apr/07 01:39 PM

I don't think this is still an issue. Fixed in 0.9.8
Please go ahead and close it.


Charles Oliver Nutter added a comment - 18/Apr/07 03:05 PM

Thanks Ashish! Closing as fixed in 0.9.8.


Charles Oliver Nutter made changes - 18/Apr/07 03:05 PM
Assignee Thomas E Enebo [ enebo ] Charles Oliver Nutter [ headius ]
Resolution Fixed [ 1 ]
Fix Version/s JRuby 1.x [ 13421 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s JRuby 0.9.8 [ 13069 ]
Charles Oliver Nutter made changes - 30/Apr/07 03:12 AM
Status Resolved [ 5 ] Closed [ 6 ]