[JIRA] Commented: (JRUBY_RACK-8) default gem_path not initialized

  • From: "chneeb (JIRA)" <jira-no-reply@kenai.com>
  • To: issues@jruby-rack.kenai.com
  • Subject: [JIRA] Commented: (JRUBY_RACK-8) default gem_path not initialized
  • Date: Wed, 24 Mar 2010 17:24:16 +0000 (GMT+00:00)


    [ 
http://kenai.com/jira/browse/JRUBY_RACK-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49448#action_49448
 ] 

chneeb commented on JRUBY_RACK-8:
---------------------------------

Nick and Marcus: I also have the same issue with WebSphere 7, JRuby 1.5 and 
JRuby-Rack 0.96. It seems like WebSphere doesn't pass on the jruby.home 
system property and either JRuby or JRuby-Rack defaults to the system's temp 
directory. This is why you see things like "/tmp/lib/ruby/1.8" in the 
$LOAD_PATH. Wouldn't defaulting to "META-INF/jruby.home" instead of the temp 
directory be better and resolve the issue? Thanks!

> default gem_path not initialized
> --------------------------------
>
>                 Key: JRUBY_RACK-8
>                 URL: http://kenai.com/jira/browse/JRUBY_RACK-8
>             Project: jruby-rack
>          Issue Type: Bug
>    Affects Versions: 0.9.4
>         Environment: Windows XP / Websphere 6.1 (Problem reproduced on 
> Opensuse 11 / Weblogic 10.3)
> Warbler 0.9.12
> jruby 1.2.0
> jruby-rack 0.9.4
>            Reporter: jbonhomm
>            Assignee: Nick Sieger
>         Attachments: app_layout.diff
>
>
> After the jruby-rack upgrade in 0.9.4, applications don't start on 
> Websphere and Weblogic. The GEM integrated on the war file with warbler 
> cannot be found.
> The Websphere log shows the following error:
> [5/1/09 15:31:59:796 PDT] 00000017 WebGroup      A   SRVE0169I: Loading Web 
> Module: atb.war.
> [5/1/09 15:32:23:968 PDT] 00000017 WebApp        A   SRVE0181I: 
> [atb_war#atb.war] [/atb] [Servlet.LOG]: unable to create shared application 
> instance: org.jruby.rack.RackInitializationException: no such file to load 
> -- jruby/openssl/stub
>       from lib/common/rbcrypt.rb:20:in `require'
>       from lib/facade/bin/boot.rb:34:in `require'
>       from lib/facade/bin/facade.rb:22:in `require'
>       from lib/facade/bin/warload.rb:34:in `require'
>       from <script>:3
>       from file:/C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
>  `instance_eval'
>       from file:/C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29:in
>  `initialize'
>       from <script>:2
>       at 
> org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:153)
>       at 
> org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:50)
>       at 
> org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:26)
>       at 
> org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
>       at 
> com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:605)
>       at 
> com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:265)
>       at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:271)
>       at 
> com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
>       at 
> com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
>       at 
> com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:653)
>       at 
> com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:606)
>       at 
> com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
>       at 
> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
>       at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1295)
>       at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
>       at 
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:567)
>       at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
>       at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
>       at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2114)
>       at 
> com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:340)
>       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
> Caused by: org.jruby.exceptions.RaiseException: no such file to load -- 
> jruby/openssl/stub
>       at (unknown).initialize(lib/common/rbcrypt.rb:20)
>       at Kernel.require(lib/common/rbcrypt.rb:20)
>       at Kernel.require(lib/facade/bin/boot.rb:34)
>       at Kernel.require(lib/facade/bin/facade.rb:22)
>       at Kernel.require(lib/facade/bin/warload.rb:34)
>       at Kernel.require(<script>:3)
>       at (unknown).(unknown)(file:/C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
>       at Kernel.instance_eval(file:/C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
>       at Kernel.instance_eval(file:/C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/builder.rb:29)
>       at Rack::Builder.initialize(<script>:2)
>       at (unknown).(unknown)(:1)
> It seems that the default GEM_PATH is not initialized to the value 
> /WEB-INF/gems like in 0.9.3.
> I have tried many options and none worked:
> - changing the environment variable GEM_PATH 
> - Add the following parameter in in config/warbler.rb: 
> config.webxml.gem.path
> - Add the following context-param in the web.xml:
>   <context-param> 
>     <param-name>gem.path</param-name> 
>     <param-value>C:/Program 
> Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/jibNode01Cell/atb_war.ear/atb.war/WEB-INF/gems</param-value>
>  
>   </context-param> 

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

        


[JIRA] Commented: (JRUBY_RACK-8) default gem_path not initialized

chneeb (JIRA) 03/24/2010
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close