Glassfish Gem 0.9.0 does not work with JRuby 1.1.5
--------------------------------------------------

                 Key: JRUBY-3121
                 URL: http://jira.codehaus.org/browse/JRUBY-3121
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.5
         Environment: Windows XP
            Reporter: Brandon Hauff
            Assignee: Thomas E Enebo


>From command line CAN run an existing Rails app in JRuby 1.1.4 with new 
>Glassfish Gem 0.9.0.  From command line CANNOT run the same Rails app in JRuby 
>1.1.5 with new Glassfish Gem 0.9.0.  Below is the listing of my gems in JRuby 
>1.1.5 which are identical to my gems in JRuby 1.1.4.  The stack trace is also 
>there for when I try to start the Rails app.

C:\data\Dev\rails>jruby -S gem list

*** LOCAL GEMS ***

actionmailer (2.1.0)
actionpack (2.1.0)
activerecord (2.1.0)
activerecord-jdbc-adapter (0.8.2)
activeresource (2.1.0)
activesupport (2.1.0)
composite_primary_keys (1.0.2)
gem_plugin (0.2.3)
glassfish (0.9.0)
image_voodoo (0.1)
mongrel (1.1.4)
rack (0.4.0)
rails (2.1.0)
rake (0.8.3)
rspec (1.1.11)
sources (0.0.1)

C:\data\Dev\rails>jruby -S glassfish_rails pictures
Nov 7, 2008 3:22:20 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Apache Felix OSGi platform
Nov 7, 2008 3:22:20 PM com.sun.enterprise.glassfish.bootstrap.ASMainOSGi 
findDerbyClient
INFO: Cannot find javadb client jar file, jdbc driver not available

Welcome to Felix.
=================

Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.core.kernel [23]
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.common-util [12]
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle GlassFish-Application-Common-Module [19]
Nov 7, 2008 3:22:20 PM APIClassLoaderService createAPIClassLoader
INFO: APIClassLoader = Class Loader for Bundle 
[GlassFish-Application-Common-Module [19] ]
Nov 7, 2008 3:22:20 PM HK2Main$HK2ServiceTrackerCustomizer addingService
INFO: registering service = [EMAIL PROTECTED], contract = 
org.osgi.service.startlevel.StartLevel, name = null
Nov 7, 2008 3:22:20 PM HK2Main$HK2ServiceTrackerCustomizer addingService
INFO: registering service = [EMAIL PROTECTED], contract = 
org.osgi.service.packageadmin.PackageAdmin, name = null
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.branding.branding [22]
no resource bundle found for version, using default GlassFish version
Nov 7, 2008 3:22:20 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.internal-api [15]
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.admin.config-api [25]
Nov 7, 2008 3:22:20 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [16]
Nov 7, 2008 3:22:21 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.deployment.deployment-common [17]
Nov 7, 2008 3:22:21 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.flashlight.flashlight-framework [18]
Nov 7, 2008 3:22:21 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 3000
Nov 7, 2008 3:22:21 PM com.sun.enterprise.v3.services.impl.GrizzlyService 
postConstruct
INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
Nov 7, 2008 3:22:21 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 4848
Nov 7, 2008 3:22:21 PM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter 
setStateMsg
INFO: The Admin Console Application is not yet installed.
Nov 7, 2008 3:22:21 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [8]
Nov 7, 2008 3:22:21 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.scripting.grizzly-jruby-module [9]
Nov 7, 2008 3:22:21 PM com.sun.grizzly.jruby.rack.RackApplicationChooser 
getFactory
INFO: Detected Rails application
Nov 7, 2008 3:22:21 PM com.sun.grizzly.jruby.rack.RackApplicationChooser 
getFactory
INFO: Rails Version: 2.1
Nov 7, 2008 3:22:21 PM com.sun.grizzly.pool.DynamicPool logDynamicStatus
INFO: Pool started without dynamic resizing enabled. Pool will not attempt to 
determine the upper and lower bounds that it should be using, and will s
tay at 1
Nov 7, 2008 3:22:22 PM com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter 
initializeObject
SEVERE: Error initializing rack application!
Nov 7, 2008 3:22:22 PM
SEVERE: com.sun.grizzly.jruby.rack.RackInitializationException: No such file or 
directory - No such file or directory - C:/data/BrandonH/Dev/rails/C:
        from C:/jruby-1.1.5/lib/ruby/1.8/pathname.rb:453:in `realpath'
        from 
C:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:690:in 
`set_root_path!'
        from 
C:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:652:in 
`initialize'
        from /C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:39:in `run'
        from /C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:39:in `run'
        from /C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:11:in `boot!'
        from /C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:109
        from /C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:11:in 
`require'
        from /C:/data/BrandonH/Dev/rails/pictures//config/environment.rb:11
        from /C:/data/BrandonH/Dev/rails/pictures//config/environment.rb:1

Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:171)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:72)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:16)
Nov 7, 2008 3:22:22 PM
SEVERE:         at com.sun.grizzly.pool.DynamicPool$1.run(DynamicPool.java:394)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
Nov 7, 2008 3:22:22 PM
SEVERE:         at java.lang.Thread.run(Thread.java:619)
Nov 7, 2008 3:22:22 PM
SEVERE: Caused by: org.jruby.exceptions.RaiseException: No such file or 
directory - C:/data/BrandonH/Dev/rails/C:
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
(unknown).initialize(C:/jruby-1.1.5/lib/ruby/1.8/pathname.rb:420)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Pathname.realpath_rec(C:/jruby-1.1.5/lib/ruby/1.8/pathname.rb:453)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Pathname.realpath(C:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:690)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Rails::Configuration.set_root_path!(C:/jruby-1.1.5/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:652)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Rails::Configuration.initialize(/C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:39)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
#<Class:01xc6692>.run(/C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:39)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Rails::Boot.run(/C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:11)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
#<Class:01x92015d>.boot!(/C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:109)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
(unknown).(unknown)(/C:/data/BrandonH/Dev/rails/pictures//config/boot.rb:11)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
Kernel.require(/C:/data/BrandonH/Dev/rails/pictures//config/environment.rb:11)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
(unknown).(unknown)(/C:/data/BrandonH/Dev/rails/pictures//config/environment.rb:1)
Nov 7, 2008 3:22:22 PM
SEVERE:         at (unknown).(unknown)(:1)
Nov 7, 2008 3:22:22 PM
SEVERE: Exception in thread "pool-8-thread-1"
Nov 7, 2008 3:22:22 PM
SEVERE: java.lang.IllegalStateException: Rack initialization failed!
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:49)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:16)
Nov 7, 2008 3:22:22 PM
SEVERE:         at com.sun.grizzly.pool.DynamicPool$1.run(DynamicPool.java:394)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
Nov 7, 2008 3:22:22 PM
SEVERE:         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
Nov 7, 2008 3:22:22 PM
SEVERE:         at java.lang.Thread.run(Thread.java:619)
Nov 7, 2008 3:22:22 PM com.sun.grizzly.jruby.RailsAdapter <init>
INFO: Jruby version is: 1.1.5
Nov 7, 2008 3:22:22 PM org.glassfish.scripting.rails.RailsDeployer load
INFO: Loading Rails application pictures at /
Nov 7, 2008 3:22:22 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish v3 Prelude startup time : Felix(579ms) startup services(1359ms) 
total(1938ms)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to