GlassFish v3 Gem throws NPE
---------------------------

                 Key: JRUBY-1549
                 URL: http://jira.codehaus.org/browse/JRUBY-1549
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.2
         Environment: Windows Vista, JDK 1.5_012
            Reporter: Arun Gupta


On JRuby 1.0.2, installed GlassFish v3 gem from:

http://download.java.net/maven/glassfish/com/sun/enterprise/glassfish/glassfish-gem/10.0-SNAPSHOT/glassfish-gem-10.0-SNAPSHOT.gem

Created a template app and starting it using glassfish_rails script gives the 
following error:

-- cut here --
INFO: Listening on port 8080
Nov 7, 2007 5:58:19 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init>
INFO: New Servicing page from: C:\workarea\samples\rails\hello\public
C:/testbed/ruby/jruby-1.0.2/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No 
such file or director
y - /C: (Errno::ENOENT)
        from C:/testbed/ruby/jruby-1.0.2/lib/ruby/1.8/pathname.rb:453:in 
`realpath'
        from 
C:/testbed/ruby/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:543:i
n `set_root_path!'
        from 
C:/testbed/ruby/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:509:i
n `initialize'
        from /C:/workarea/samples/rails/hello/config/boot.rb:38:in `new'
        from /C:/workarea/samples/rails/hello/config/boot.rb:38:in `run'
        from /C:/workarea/samples/rails/hello/config/boot.rb:38
        from /C:/workarea/samples/rails/hello/config/environment.rb:11:in 
`require'
        from /C:/workarea/samples/rails/hello/config/environment.rb:11
        from :1
        ...internal jruby stack elided...
        from org.jruby.Ruby.loadScript(Ruby.java:1209)
        from org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
        from org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:307)
        from org.jruby.runtime.load.LoadService.require(LoadService.java:333)
        from 
com.sun.grizzly.jruby.RubyObjectPool.loadRubyLibraries(RubyObjectPool.java:153)
        from com.sun.grizzly.jruby.RubyObjectPool.start(RubyObjectPool.java:127)
        from com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:75)
        from com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:46)
        from 
com.sun.enterprise.v3.services.impl.ApplicationLoaderService$1.load(ApplicationLoaderSe
rvice.java:295)
        from 
com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:224)
        from 
com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationL
oaderService.java:156)
        from 
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:79)
        from 
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:29)
        from 
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:21)
        from com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:70)
        from org.jvnet.hk2.component.Habitat$1.get(Habitat.java:75)
        from java.util.AbstractList$Itr.next(AbstractList.java:422)
        from 
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:105)
        from com.sun.enterprise.module.bootstrap.Main.launch(Main.java:274)
        from com.sun.enterprise.module.bootstrap.Main.launch(Main.java:235)
        from com.sun.enterprise.module.bootstrap.Main.start(Main.java:133)
        from com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:56)
No such file or directory - /C:
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.ApplicationLifecycle failure
SEVERE: Exception while invoking class 
com.sun.enterprise.v3.services.impl.ApplicationLoaderService$
1 prepare method
java.lang.NullPointerException
        at 
org.jruby.javasupport.JavaEmbedUtils.rubyToJava(JavaEmbedUtils.java:108)
        at com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:83)
        at com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:46)
        at 
com.sun.enterprise.v3.services.impl.ApplicationLoaderService$1.load(ApplicationLoaderServ
ice.java:295)
        at 
com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:224)
        at 
com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationLoa
derService.java:156)
        at 
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:79)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:29)
        at 
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:21)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:70)
        at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:75)
        at java.util.AbstractList$Itr.next(AbstractList.java:422)
        at 
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:105)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:274)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:235)
        at com.sun.enterprise.module.bootstrap.Main.start(Main.java:133)
        at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:56)
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Application Loader
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Grizzly on port 8080 
-- cut here --

It works with the trunk updated few minutes ago (Nov 8, 2:10pm).


-- 
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