Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:38:27+00:00 2026-06-11T12:38:27+00:00

I have a Rails 3 app that is packed into a war file using

  • 0

I have a Rails 3 app that is packed into a war file using Warbler and being deployed to Weblogic 11g. I am deploying the war via the console web app. When I try accessing the app it fails, generating stack trace below. However, if I deploy the app unpacked (extracting the same war file that is failing) it runs perfectly.

Env:

  • Ubuntu 12.04
  • JDK (1.7.0_06-b24)
  • Weblogic 11g (10.3.6)
  • rails (3.2.8)
  • warbler (1.3.6)
  • jruby (1.6.7.2)

Gist of stack trace and warble.rb

Stack Trace

<Sep 14, 2012 12:55:25 PM CDT> <Error> <ServletContext-/ruby-px> <BEA-000000> <ERROR: application error
org.jruby.rack.RackInitializationException: can't dup NilClass
    from classpath:/META-INF/jruby.home/lib/ruby/1.9/pathname.rb:215:in `initialize'
    from classpath:/jruby/rack/rails/railtie.rb:16:in `Railtie'
    from org/jruby/RubyProc.java:258:in `call'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:43:in `run_load_hooks'
    from org/jruby/RubyArray.java:1615:in `each'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/railties-3.2.8/lib/rails/application.rb:67:in `inherited'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/config/application.rb:13:in `RubyPx'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/config/application.rb:12:in `(root)'
    from org/jruby/RubyKernel.java:1042:in `require'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/config/application.rb:2:in `(root)'
    from org/jruby/RubyKernel.java:1042:in `require'
    from /home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/config/environment.rb:23:in `load_environment'
    from classpath:/jruby/rack/rails_booter.rb:65:in `load_environment'
    from <script>:1:in `(root)'

    at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:231)
    at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:58)
    at org.jruby.rack.PoolingRackApplicationFactory.createApplication(PoolingRackApplicationFactory.java:323)
    at org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:171)
    at org.jruby.rack.DefaultRackDispatcher.getApplication(DefaultRackDispatcher.java:27)
    Truncated. see log file for complete stacktrace
Caused By: org.jruby.exceptions.RaiseException: (TypeError) can't dup NilClass
    at org.jruby.RubyKernel.dup(org/jruby/RubyKernel.java:1911)
    at Pathname.initialize(classpath:/META-INF/jruby.home/lib/ruby/1.9/pathname.rb:215)
    at (Anonymous).Railtie(classpath:/jruby/rack/rails/railtie.rb:16)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:258)
    at (Anonymous).execute_hook(/home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:34)
    Truncated. see log file for complete stacktrace
> 
<Sep 14, 2012 12:55:30 PM CDT> <Error> <ServletContext-/ruby-px> <BEA-000000> <ERROR: couldn't handle error
org.jruby.exceptions.RaiseException: (TypeError) can't convert nil into String
    at org.jruby.RubyFile.join(org/jruby/RubyFile.java:1496)
    at org.jruby.RubyFile.join(org/jruby/RubyFile.java:1518)
    at File._call(/home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/rack-1.4.1/lib/rack/file.rb:55)
    at File.call(/home/scott/wls_domains/PartnersXpress/servers/myserver/tmp/_WL_user/ruby-px/iikl7j/war/WEB-INF/gems/gems/rack-1.4.1/lib/rack/file.rb:30)
    at Errors.response_content(classpath:/jruby/rack/errors.rb:37)
    Truncated. see log file for complete stacktrace

EDIT: Added JDK version.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:38:28+00:00Added an answer on June 11, 2026 at 12:38 pm

    The solution was easier than I thought. The symptoms above were being caused by the fact that Weblogic does not support ServletContext.getRealPath() by default for packed war files. However, this can be enabled by providing a WEB-INF/weblogic.xml that has show-archived-real-path-enabled set to true

    Example:

    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">   
       <container-descriptor>     
           <show-archived-real-path-enabled>true</show-archived-real-path-enabled>   
       </container-descriptor> 
    </weblogic-web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm deploying a JRuby/Rails app packed up into abc.war, and it is deployed with
I have a Rails app that is served by Apache and Passenger, using only
I have a rails app that is using Devise perfectly in development. I have
I have a rails app that is using Devise, with a User model, no
I have a rails app that requires multi-table inheritance for which I am using
I have a rails app that runs on Heroku using their standard postgres database
I have a rails app that I am deploying via capistrano. The app deploys
I have a rails app that is combining javascript assets using Jammit , and
I have a Rails app that I'm developing on Windows and deploying to Linux.
I have a Rails app that does everything I need it to do via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.