-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Description
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 #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).Metadata
Metadata
Assignees
Labels
No labels