jruby

jruby warbler set Rails environment variable is not persisting when deployed with tomcat

inside my warbler config file I have the following: config.webxml.rails.env ='development' i build my war, and deploy with the tomcat web utility, and when I go to the app it doesn't run, but instead of getting the development backtrace to help me figure out what isn't getting setup right, it just gives me the production 505 error pag...

JRUBY GUI Toolkits

I have been looking for a GUI library for a while now. I had tried Monkeybars and Glimmer, both of which appealed the most to me, but I didn't manage to get them running (Glimmer is very old, won't load the gem properly) and Monkeybars seems quite dead, can't even run the Hello World examples in the video presentations. So I am wonderin...

how to install rawr ?

I followed http://rawr.rubyforge.org/ I typed rawr install but it says it couldn't find the package.... No command 'rawr' found, did you mean: Command 'raw' from package 'util-linux' (main) Command 'rar' from package 'rar' (multiverse) rawr: command not found am I supposed to run jruby -S rawr install ? ...

It's possible to use GWT in a Jruby app?

It's possible to use GWT in a Jruby app? ...

Do you code in ruby to build Java applications ?

Recently I've come across http://monkeybars.rubyforge.org/ and Rawr. It seems sufficient to build Java applications. My question is, is there any disadvantages of choosing this approach ? Jruby to Java ? Will my application suffer performance loss compared to writing it in Java ? For me the advantage is I don't have switch to Java, and ...

gem install rawr fails ?

Successfully installed rawr-1.4.3 1 gem installed Installing ri documentation for rawr-1.4.3... Installing RDoc documentation for rawr-1.4.3... Could not find main page README.md Could not find main page README.md Could not find main page README.md Could not find main page README.md however when I run rawr install, it says No command...

where is thedocumentation for schnell-jruby ?

I discovered http://code.google.com/p/schnell-jruby/ a wrapper for htmlunit in jruby however there is no documentation or mailing list !! what to do ? ...

Implement different stratum for Java Debugger Interface

In the Java Debugger Interface documentation for the Location class, there's a paragraph discussing the "stratum" of the location. I've been looking around a bit for more detail on how one would go about implementing a new stratum (for, say, Scala or JRuby), but I haven't found much. Can anyone shed some light on the topic? ...

Will Ruby ever support the missing features Java does in the future?

I've never used Jruby and I don't know why I should, but some people use it to complement the missing Java features in the Ruby language. So I wonder if Ruby will ever support the missing features Java does in the future so we do not need to learn Java? What do you think? ...

Sharing global references among jruby threads and inside Rack application

I'm trying to create a Stats counter (similar to the one in ostrich for scala by Twitter) but having a hard time making sure that all my threads have access to this. My Stats class is defined like this: class Stats @@counters = {} .. accessors .. def self.incr(counter, amt = 1) if !@@counters[counter] @@counters[coun...

Jruby line-numbering problem ?

Given the following snippet: hash = { # 1 (line = __LINE__) => # 2 lambda { x } # 3 } Doing some inspection on jruby: puts line # >> 2 puts hash[line].inspect >> #<Proc:0x560932fe@/tmp/test.rb:2> Seems to differ from the standard mri: puts line # >> 2 puts hash[line].inspect >> #<Proc:0x00007fa59...

How to extend DataMapper::Resource with custom method

I have following code: module DataMapper module Resource @@page_size = 25 attr_accessor :current_page attr_accessor :next_page attr_accessor :prev_page def first_page? @prev_page end def last_page? @next_page end def self.paginate(page) if(page && page.to_i > 0) @current_page = page....

Creating bean PropertyDescriptor using JRuby

I'm trying to port some java to jruby, and it uses a beans PropertyDescriptor. The original code is: new PropertyDescriptor("splitEvaluator", CrossValidationResultProducer.class) which I've tried to port to: PropertyDescriptor.new("splitEvaluator", CrossValidationResultProducer) However, I get the error: no constructor with argume...

Running rake db:migrate without some initializers

I am trying to run jruby -S rake db:migrate, but I do not want to start up a daemon in config/initializers whenever I do a migrate. Is there a way to do this? Up until now, I have just been moving the daemon file to a file with a .bak extension so that rails doesn't load it when I do the migrate. I suspect that this is a stupid way of ...

How can JVM implementations like Jython and JRuby beat their native counterparts?

I was watching this video here, where Robert Nicholson discusses P8, an implementation of PHP on the JVM. At some point he mentions that they aim to surpass native PHP in performance some time in the future. He mentions JRuby and Jython, which started out slower than their native counterparts, but eventually surpassed them. Quercus, an...

Function 'xsltParseStylesheetDoc' not found in [libxml2.so]

This error comes up in Redhat Enterprise Linux Server 5.4 - 64 bit. Linux rhl-64-tibbr5 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux There is also this error in the stack trace. uninitialized constant Nokogiri::VERSION_INFO More version details: jruby-1.4.0RC1 ruby/gems/1.8/gems/activesupport-2....

Should a Rails app have to work in jRuby, when I want to deploy it via warble on a Java application Server?

I want to make sure, the app will work properly before I "warble" it. Does it have to work in jRuby for that or does it work anyway? ...

How reliable is JRuby?

I'm interested in promoting JRuby in our office as the platform hosting Rails applications. But how reliable is it? Is its performance better than MRI 1.8.7? JRuby 1.5 states that it is 100% compatible with Ruby 1.8.7, does this mean that JRuby can run any Ruby/Rails code? ...

MacRuby+IronRuby or JRuby for Desktop Applications?

For Web Applications I use Ruby on Rails. And now it's time to see if I can code Desktop Applications with Ruby. So I wonder which one I should choose. The way I see it is MacRuby+IronRuby vs JRuby. The former lets me have desktop applications for both Mac and Windows while the latter lets be have in both, but only learning one tool. ...

HTML parser that is compatible with JRuby?

I'm having a difficult time locating an HTML parser that works with JRuby. I've become fond of using Nokogiri for HTML parsing, but Nokogiri requires the use of bxml2.dll, which I don't have available on my machine and am not sure that I can ensure that it is available on all users' machines. I attempted to use another favorite, Scruby...