Hi all,
I use NetBean 6.9.1 to run Depot Application demo but it does not run.
Here is the error message
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:in
process’
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/haianh/Documents/NetBeansProjects/Depot/config/environment.rb:37 from C:/Users/haianh/Documents/NetBeansProjects/Depot/config/environment.rb:31:in
require’
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:in
load_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:in
new’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
new' from <script>:1 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:271:in
require_frameworks’: 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" (RuntimeError) 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:in
process’
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/haianh/Documents/NetBeansProjects/Depot/config/environment.rb:37 from C:/Users/haianh/Documents/NetBeansProjects/Depot/config/environment.rb:31:in
require’
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:in
load_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:in
new’
from file:/C:/Program
Files/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new’
from :1
…internal jruby stack elided…
from Rails::Initializer.require_frameworks(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)
from Rails::Initializer.process(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)
from
#Class:01x79318309.run(C:/Users/haianh/Documents/NetBeansProjects/Depot/config/environment.rb:37)
from
(unknown).(unknown)(C:/Users/haianh/Documents/NetBeansProjects/Depot/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:01x2748ea70.new(:1)
from (unknown).(unknown)(:1)
My enviroment include Win7 64bit, JDK 6u21, mysql 5.1.49, jruby-1.5.1,
rails-2.3.8
Can anyone guides me to fix the error? Thank in advance