JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-1922

Pathing issues (pathname? realpath?) on Windows with GlassFish gem

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby 1.1RC2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Reported by Kazuki Aranami, a pathing issue when using the current Glassfish gem on Windows:

      http://d.hatena.ne.jp/kimtea/20080108

        Activity

        Hide
        Vladimir Sizikov added a comment -

        Isn't this JRUBY-1549?

        Btw, the very latest JRuby 1.1RC1 built from trunk, works fine for me (at least, I stuck farther along the way)

        Show
        Vladimir Sizikov added a comment - Isn't this JRUBY-1549 ? Btw, the very latest JRuby 1.1RC1 built from trunk, works fine for me (at least, I stuck farther along the way)
        Hide
        Charles Oliver Nutter added a comment -

        Did you test on windows?

        Show
        Charles Oliver Nutter added a comment - Did you test on windows?
        Hide
        Vladimir Sizikov added a comment -

        Yes, I tested on Vista x64.

        Here's what I get in the logs (exception in the logs is due to glassfish incompatiblitiy with JRuby 1.1 API changes
        (JRUBY-1925). The exception happens when some rails requests are made, not during startup.

        D:\work\jruby-dev>jruby -S glassfish_rails hello
        Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Init service : com.sun.enterprise.v3.services.impl.CmdLineParamProcessor@170119f
        Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Init service : com.sun.enterprise.v3.services.impl.LogManagerService@1b7a553
        Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.services.impl.DeploymentService postConstruct
        INFO: Supported containers : web,jruby,phobos
        Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Startup service : Deployment
        Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter postConstruct
        INFO: Listening on port 8080
        Jan 15, 2008 11:40:43 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init>
        INFO: New Servicing page from: D:\work\jruby-dev\hello\public
        Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Startup service : Application Loader
        Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Startup service : Grizzly on port 8080
        Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run
        INFO: Glassfish v3 started in 8809 ms
        Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service
        INFO: No adapter registered for : /javascripts/prototype.js
        Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service
        INFO: No adapter registered for : /javascripts/effects.js
        Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service
        INFO: No adapter registered for : /images/rails.png
        Jan 15, 2008 11:40:59 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service
        INFO: No adapter registered for : /rails/info/properties
        Jan 15, 2008 11:41:01 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service
        INFO: No adapter registered for : /images/rails.png
        Jan 15, 2008 11:41:04 PM com.sun.grizzly.http.DefaultProcessorTask invokeAdapter
        SEVERE: processorTask.serviceError
        java.lang.NoSuchMethodError: org.jruby.Ruby.parse(Ljava/io/Reader;Ljava/lang/String;Lorg/jruby/runtime/Dynamic
        Scope;I)Lorg/jruby/ast/Node;
                at com.sun.grizzly.jruby.RailsAdapter.serviceDynamicContent(RailsAdapter.java:119)
                at com.sun.grizzly.standalone.DynamicContentAdapter.service(DynamicContentAdapter.java:118)
                at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
                at com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251)
                at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598)
                at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529)
                at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773)
                at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
                at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90)
                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68)
                at com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628)
                at com.sun.grizzly.Context.call(Context.java:266)
                at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
        Jan 15, 2008 11:41:05 PM com.sun.grizzly.http.DefaultProcessorTask invokeAdapter
        SEVERE: processorTask.serviceError
        java.lang.NoSuchMethodError: org.jruby.Ruby.parse(Ljava/io/Reader;Ljava/lang/String;Lorg/jruby/runtime/Dynamic
        Scope;I)Lorg/jruby/ast/Node;
                at com.sun.grizzly.jruby.RailsAdapter.serviceDynamicContent(RailsAdapter.java:119)
                at com.sun.grizzly.standalone.DynamicContentAdapter.service(DynamicContentAdapter.java:118)
                at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
                at com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251)
                at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598)
                at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529)
                at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773)
                at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
                at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90)
                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68)
                at com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628)
                at com.sun.grizzly.Context.call(Context.java:266)
                at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
        
        Show
        Vladimir Sizikov added a comment - Yes, I tested on Vista x64. Here's what I get in the logs (exception in the logs is due to glassfish incompatiblitiy with JRuby 1.1 API changes ( JRUBY-1925 ). The exception happens when some rails requests are made, not during startup. D:\work\jruby-dev>jruby -S glassfish_rails hello Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Init service : com.sun.enterprise.v3.services.impl.CmdLineParamProcessor@170119f Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Init service : com.sun.enterprise.v3.services.impl.LogManagerService@1b7a553 Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.services.impl.DeploymentService postConstruct INFO: Supported containers : web,jruby,phobos Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Startup service : Deployment Jan 15, 2008 11:40:43 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter postConstruct INFO: Listening on port 8080 Jan 15, 2008 11:40:43 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init> INFO: New Servicing page from: D:\work\jruby-dev\hello\public Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Startup service : Application Loader Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Startup service : Grizzly on port 8080 Jan 15, 2008 11:40:52 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Glassfish v3 started in 8809 ms Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service INFO: No adapter registered for : /javascripts/prototype.js Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service INFO: No adapter registered for : /javascripts/effects.js Jan 15, 2008 11:40:58 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service INFO: No adapter registered for : /images/rails.png Jan 15, 2008 11:40:59 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service INFO: No adapter registered for : /rails/info/properties Jan 15, 2008 11:41:01 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter service INFO: No adapter registered for : /images/rails.png Jan 15, 2008 11:41:04 PM com.sun.grizzly.http.DefaultProcessorTask invokeAdapter SEVERE: processorTask.serviceError java.lang.NoSuchMethodError: org.jruby.Ruby.parse(Ljava/io/Reader;Ljava/lang/String;Lorg/jruby/runtime/Dynamic Scope;I)Lorg/jruby/ast/Node; at com.sun.grizzly.jruby.RailsAdapter.serviceDynamicContent(RailsAdapter.java:119) at com.sun.grizzly.standalone.DynamicContentAdapter.service(DynamicContentAdapter.java:118) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68) at com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628) at com.sun.grizzly.Context.call(Context.java:266) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179) Jan 15, 2008 11:41:05 PM com.sun.grizzly.http.DefaultProcessorTask invokeAdapter SEVERE: processorTask.serviceError java.lang.NoSuchMethodError: org.jruby.Ruby.parse(Ljava/io/Reader;Ljava/lang/String;Lorg/jruby/runtime/Dynamic Scope;I)Lorg/jruby/ast/Node; at com.sun.grizzly.jruby.RailsAdapter.serviceDynamicContent(RailsAdapter.java:119) at com.sun.grizzly.standalone.DynamicContentAdapter.service(DynamicContentAdapter.java:118) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68) at com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628) at com.sun.grizzly.Context.call(Context.java:266) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
        Hide
        Pramod Gopinath added a comment -

        This was an issue that was present in the code bits of the glassfish gem, where in we were using internal apis when creating the rails instances. These apis had changed between JRuby 1.0.3 and JRuby 1.1. Based on input from Nick, have changed the apis so that this would work with any JRuby version. Could you check out the latest version of the gem now hosted on RubyForge : gem install glassfish.

        Show
        Pramod Gopinath added a comment - This was an issue that was present in the code bits of the glassfish gem, where in we were using internal apis when creating the rails instances. These apis had changed between JRuby 1.0.3 and JRuby 1.1. Based on input from Nick, have changed the apis so that this would work with any JRuby version. Could you check out the latest version of the gem now hosted on RubyForge : gem install glassfish.
        Hide
        Thomas E Enebo added a comment -

        Pramod said this is resolved...resolving

        Show
        Thomas E Enebo added a comment - Pramod said this is resolved...resolving

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Charles Oliver Nutter
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: