Falied to create jruby instance errror message

Hi, this is my first attempt at doing a ruby on rails project but i
can’t even get started, i am trying to run glassfish 3 at the moment and
get this error code in the log file

S
SEVERE: library socket' could not be loaded: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jruby/ext/socket/RubySocket" from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:134:inprocess’
from C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
run' from C:/Users/joe94/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:9 from C:/Users/joe94/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:31:inrequire’
from C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from file:/C:/Program Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98:inload_application’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in
initialize' from file:/C:/Program Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:innew’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new’
from :1

SEVERE: library socket' could not be loaded: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jruby/ext/socket/RubySocket" from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:134:inprocess’
from C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
run' from C:/Users/joe94/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:9 from C:/Users/joe94/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:31:inrequire’
from C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from file:/C:/Program Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98:inload_application’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in
initialize' from file:/C:/Program Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:innew’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new’
from :1

   from

#Class:01xce6965.run(C:/Users/xxx/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:9)
from
(unknown).(unknown)(C:/Users/xxx/Documents/NetBeansProjects/RailsApplication3/config/environment.rb:31)
from Kernel.require(C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)
from Kernel.require(file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98)
from Rack::Adapter::Rails.load_application(file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75)
from Rack::Adapter::Rails.initialize(file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)
from (unknown).new(file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)
from #Class:01x1733273.new(:1)
from (unknown).(unknown)(:1)

SEVERE: Failed to create JRuby instance.
SEVERE: Failed to create JRuby instance.

Is there an easy solution to this problem

Thanks

Sarah

I’m sorry but i am a bit computer illterate
and i am not sure how to proceed with these error messasges

Would reinstalling glassfish be worth trying?

Sarah Ww wrote in post #972911:

I’m sorry but i am a bit computer illterate

Then get a little less so before you start programming.

and i am not sure how to proceed with these error messasges

Would reinstalling glassfish be worth trying?

I don’t know. I think Glassfish probably has its own support forum; you
might ask there.

However, I would recommend not starting Rails development with JRuby,
and not starting Rails development on Windows. Both of these will
make setup difficult. If you don’t have access to a Mac or other *nix
box, then you can download Virtual Rails (caveat: I’ve never used it,
but I’ve heard great things about it), which will save you the setup and
give you a ready-made Linux VM for Rails development.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]