Unable to run jruby process as agent on linux machine

Hi!

Iam trying to run jruby process as a agent on my linux machine. but it
is giving errors for me, below is the error snippet…please help.

[kiran@hymettusvir4 ~]$ ruby -J-Djruby.fork.enabled=true -C
/home/kiran/rbagent/ /home/kiran/rbagent/remoteagent.rb hostname -i
OpenSSL ASN1/PKey/X509/Netscape/PKCS7 implementation unavailable
gem install bouncy-castle-java for full support.
logname is remoteagent
log file name: remoteagent-08-24-2011_09-28-43.log
NotImplementedError: fork is not available on this platform
fork at org/jruby/RubyKernel.java:1792
__fork at
/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:293
__popen3 at
/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:253
initialize at
/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:205
initialize at /home/kiran/rbagent/remoteagent.rb:37
(root) at /home/kiran/rbagent/remoteagent.rb:782

On Thu, Aug 25, 2011 at 1:57 AM, kiran duggirala [email protected]
wrote:

NotImplementedError: fork is not available on this platform
We used to allow enabling “fork”, but since it’s never safe to fork
the JVM we ultimately removed that ability entirely. There are other
ways to do this, though…I’m sure others on the list will have
suggestions, and I would help you dig if you can’t find anything.

FWIW, I’ve always daemonized Java processes using something like
nohup, so I’m on the “spit and baling wire” side of things.

  • Charlie

On Thu, Aug 25, 2011 at 1:57 AM, kiran duggirala [email protected]
wrote:

/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:293
__popen3 at
/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:253
initialize at
/home/kiran/jruby-1.6.4//lib/ruby/site_ruby/1.9.1/session.rb:205

I noticed this after I sent my previous mail. Where is this coming
from? JRuby does not ship anything under lib/ruby/site_ruby/1.9.1. Can
you explain what this is?

  • Charlie