glassfish
  1. glassfish
  2. GLASSFISH-6744

gem 0.9.0 default usage throws an error

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: V3
    • Fix Version/s: not determined
    • Component/s: jruby
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      6,744

      Description

      With gem 0.9.0, if I start it in a non-Rails, non-Merb directory, then it throws
      the following error:

      – cut here –
      Nov 7, 2008 2:56:44 PM OSGiModuleImpl start
      INFO: Started bundle org.glassfish.scripting.grizzly-jruby-module [9]
      Nov 7, 2008 2:56:45 PM com.sun.grizzly.jruby.rack.RackApplicationChooser getFactory
      SEVERE: Framework autodetection failed! Please set -Djruby.applicationType to a
      script that will start your framework
      Nov 7, 2008 2:56:45 PM org.glassfish.scripting.rails.RailsApplication <init>
      SEVERE: Error creating RailsAdapter: null
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at
      org.glassfish.scripting.rails.RailsApplication.<init>(RailsApplication.java:94)
      at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:103)
      at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:64)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:499)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:176)
      at
      com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:180)
      at
      com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:61)
      at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
      at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
      at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
      at
      com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
      at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
      at
      com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
      at
      com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:203)
      at
      com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:116)
      Caused by: java.lang.IllegalStateException: No framework to start!
      at
      com.sun.grizzly.jruby.rack.RackApplicationChooser.getFactory(RackApplicationChooser.java:98)
      at com.sun.grizzly.jruby.RailsAdapter.<init>(RailsAdapter.java:104)
      at com.sun.grizzly.jruby.RubyRuntime.<init>(RubyRuntime.java:48)
      ... 21 more
      Nov 7, 2008 2:56:45 PM org.glassfish.scripting.rails.RailsDeployer load
      INFO: Loading Rails application jruby-1.1.5 at /
      Nov 7, 2008 2:56:45 PM org.glassfish.scripting.rails.RailsDeployer load
      SEVERE: Error registering RailsAdapter for application jruby-1.1.5
      org.glassfish.api.container.EndpointRegistrationException: The endpoint adapter
      is null
      at
      com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:192)
      at
      com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:58)
      at
      com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:372)
      at
      com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:357)
      at
      com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:343)
      at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:111)
      at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:64)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:499)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:176)
      at
      com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:180)
      at
      com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:61)
      at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
      at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
      at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
      at
      com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
      at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
      at
      com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
      at
      com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:203)
      at
      com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:116)
      Nov 7, 2008 2:56:45 PM com.sun.enterprise.v3.server.AppServerStartup run
      INFO: GlassFish v3 Prelude startup time : Felix(1236ms) startup services(4194ms)
      total(5430ms)
      – cut here –

      A more user friendly message should instead be displayed. Gracefully shutting
      down the server and displaying only the help message would be useful.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            vivekp
            Reporter:
            arungupta
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: