Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OSGI/Rails/Equinox/Pax-Web - no such file to load -- /WEB-INF/config/environment.rb

オープン
#290 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, ruby
領域
build-system

調査の方向性

The failing lookup is /WEB-INF/config/environment.rb, raised from load_environment in classpath:/jruby/rack/rails/environment2.rb and called via rails_booter.rb, so start there to see how the WAR-internal path is resolved. The report also shows Gem.dir and the load path pointing into /WEB-INF/gems/, which is where a Warbler-built archive is inspected. The issue gives no reproduction steps, expected outcome or test to target, and it depends on OSGi Equinox and Pax-Web, so a newcomer would need to reproduce the setup first.

索引モデルが issue の本文から書いたものです。

説明

Hi,

I am currently trying to POC the deployment of a Rails app as an OSGI bundle in Equinox using Pax-Web + Jetty to automatically load the WAR file generated with Warble.

I achieved to load the Warble-generated bundle and I am now facing the following error:

--- Context Init Parameters:
public.root = /
rails.env = production
webapp.context = dummy

--- Backtrace
LoadError: no such file to load -- /WEB-INF/config/environment.rb
              load at org/jruby/RubyKernel.java:1081
  load_environment at classpath:/jruby/rack/rails/environment2.rb:25
  load_environment at classpath:/jruby/rack/rails_booter.rb:83
            (root) at <script>:1

--- RubyGems
Gem.dir: /WEB-INF/gems/
Gem.path:
/WEB-INF/gems
/Users/pvosges/.rvm/gems/jruby-1.7.8
/Users/pvosges/.rvm/gems/jruby-1.7.8@global
/WEB-INF/gems/
Activated gems:

--- Bundler
undefined method `bundle_path' for Bundler:Module

--- JRuby-Rack Config
compat_version =
default_logger = org.jruby.rack.logging.StandardOutLogger@5e4f92de
equals = <error: >
err = org.apache.felix.gogo.runtime.threadio.ThreadPrintStream@d222e6e
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_memory_buffer_size =
initial_runtimes =
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.ServletContextLogger@13b9beab
logger_class_name = servlet_context
logger_name = jruby.rack
maximum_memory_buffer_size =
maximum_runtimes =
num_initializer_threads =
out = org.apache.felix.gogo.runtime.threadio.ThreadPrintStream@7fb22024
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_environment =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = ServletContext@HttpServiceContext{httpContext=WebAppHttpContext{DummyApp - 32}}
throw_init_exception = false

--- $LOAD_PATH:
classpath:/META-INF/jruby.home/lib/ruby/1.9/site_ruby
classpath:/META-INF/jruby.home/lib/ruby/shared
classpath:/META-INF/jruby.home/lib/ruby/1.9

Is it even possible to use a Warble-generated WAR without exploding it?

Note: might be related to https://github.com/jruby/warbler/issues/44.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4293889-osgi-rails-equinox-pax-web-no-such-file-to-load-web-inf-config-environment-rb?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).
主要言語
Ruby
スター
901
フォーク
206
平均マージ
1日 10時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jruby/warbler のほかの issue

jruby/warbler の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。