users@glassfish.java.net

Netbeans 6.9.1 and Glassfish V3 Server error?

From: <forums_at_java.net>
Date: Wed, 17 Nov 2010 16:02:37 -0800

 

Hi - am starting a ruby-on-rails app and tried to run some code but got the
following error "Something went wrong on the server".

 

I am using;

Product Version: NetBeans IDE 6.9.1 (Build 201011082200)

Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307

System: Mac OS X version 10.6.5 running on x86_64; MacRoman; en_US (nb)

 

Can anyone help resolve this?

Thx.

 

 

Nov 17, 2010 11:34:21 PM com.sun.enterprise.glassfish.bootstrap.ASMain main

INFO: Launching GlassFish on Felix platform

Welcome to Felix

================

INFO: Perform lazy SSL initialization for the listener 'http-listener-2'

INFO: Starting Grizzly Framework 1.9.18-o - Wed Nov 17 23:34:31 GMT 2010

INFO: Grizzly Framework 1.9.18-o started in: 37ms listening on port 3700

INFO: Grizzly Framework 1.9.18-o started in: 51ms listening on port 4848

INFO: Grizzly Framework 1.9.18-o started in: 64ms listening on port 8181

INFO: Grizzly Framework 1.9.18-o started in: 130ms listening on port 8080

INFO: Starting Grizzly Framework 1.9.18-o - Wed Nov 17 23:34:31 GMT 2010

INFO: Grizzly Framework 1.9.18-o started in: 5ms listening on port 7676

INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time :
Felix(9616ms) startup services(1200ms) total(10816ms)

INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2

INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.

INFO: Binding RMI port to *:8686

INFO: JMXStartupService: Started JMXConnector, JMXService URL =
service:jmx:rmi://10.0.1.2:8686/jndi/rmi://10.0.1.2:8686/jmxrmi

INFO: Grizzly Framework 1.9.18-o started in: 15ms listening on port 8080

INFO: MNTG0107:Enabling the monitoring for all the stats with level =
JRUBY-CONTAINER

INFO: interface org.glassfish.scripting.jruby.config.JrubyContainer

INFO: Using
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the
delegate

INFO: Running lynda in development environment.

INFO: Rails application detected.

INFO: Loading application lynda at /lynda

INFO: JRuby version is: 1.5.1

INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started

INFO: lynda was successfully deployed in 1,777 milliseconds.

INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
/var/folders/+f/+fzm-0uNFxeYtKXd08ln5++++TM/-Tmp-/fileinstall--5580423007043636856,
felix.fileinstall.filter = null}

INFO: Perform lazy SSL initialization for the listener 'http-listener-2'

INFO: Grizzly Framework 1.9.18-o started in: 13ms listening on port 8181

INFO: New instance of JRuby runtime created in 3,511 milliseconds

INFO: Installed
/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg

INFO: Installed
/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar

INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
/Applications/NetBeans/glassfish-3.0.1/glassfish/domains/domain1/autodeploy/bundles,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
/var/folders/+f/+fzm-0uNFxeYtKXd08ln5++++TM/-Tmp-/fileinstall--1891795642213935447,
felix.fileinstall.filter = null}

INFO: Installed
/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar

INFO: Started bundle:
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar

INFO: Started bundle:
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar

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 /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:134:in
`process'

        from /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
`run'

        from /Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:9

        from
/Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:31:in `require'

        from /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98:in
`load_application'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in
`initialize'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new'

        from <script>:1

/Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/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 /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:134:in
`process'

        from /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
`run'

        from /Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:9

        from
/Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:31:in `require'

        from /Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98:in
`load_application'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in
`initialize'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new'

        from
file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in
`new'

        from <script>:1

        ...internal jruby stack elided...

        from
Rails::Initializer.require_frameworks(/Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:134)

        from Rails::Initializer.process(/Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113)

        from
#<Class:01x7d9acbbd>.run(/Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:9)

        from
(unknown).(unknown)(/Users/liam_carey/Sites/Ruby/lynda/config/environment.rb:31)

        from Kernel.require(/Applications/NetBeans/NetBeans
6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)

        from
Kernel.require(file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:98)

        from
Rack::Adapter::Rails.load_application(file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75)

        from
Rack::Adapter::Rails.initialize(file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)

        from
(unknown).new(file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)

        from #<Class:01x611007c2>.new(<script>:1)

        from (unknown).(unknown)(:1)

 

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

INFO: Total number of available updates : 0

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

SEVERE: Failed to create JRuby instance.

 


--
[Message sent by forum member 'wally456']
View Post: http://forums.java.net/node/719847