Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error happens when using with warble gem #78

Open
qisantanu opened this issue Oct 6, 2021 · 1 comment
Open

Error happens when using with warble gem #78

qisantanu opened this issue Oct 6, 2021 · 1 comment

Comments

@qisantanu
Copy link

I am using it ina jruby rails application. I have added to the Gemfile, bundle install is a success.
$ bundle install | grep fast
Using fast_excel 0.4.0

After creating the war file by using the warbler gem,
when I want to run the war file it is not able to find the gem and saying to install the missing gem.

$ java -jar rtti_web.war
2021-10-06 13:14:26.699:INFO::main: Logging initialized @189ms
2021-10-06 13:14:26.707:INFO:oejr.Runner:main: Runner
2021-10-06 13:14:26.851:INFO:oejs.Server:main: jetty-9.2.9.v20150224
2021-10-06 13:14:32.941:WARN:oeja.AnnotationConfiguration:main: ServletContainerInitializers: detected. Class hierarchy: empty
2021-10-06 13:14:33.198:INFO:/:main: INFO: jruby 9.3.0.0 (2.6.8) 2021-09-17 85c20e780f OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
2021-10-06 13:14:33.199:INFO:/:main: INFO: using a shared (threadsafe!) runtime
uri:classloader:/jruby/rack/response.rb:294: warning: constant ::Fixnum is deprecated
uri:classloader:/jruby/rack/core_ext.rb:26: warning: constant ::NativeException is deprecated
Could not find fast_excel-0.4.0 in any of the sources
Run bundle install to install missing gems.
2021-10-06 13:14:36.766:INFO:/:main: An exception happened during JRuby-Rack startup|exit|--- System|jruby 9.3.0.0 (2.6.8) 2021-09-17 85c20e780f OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]|Time: 2021-10-06 13:14:36 +0530|Server: jetty/9.2.9.v20150224|jruby.home: uri:classloader://META-INF/jruby.home||--- Context Init Parameters:|jruby.max.runtimes = 1|jruby.min.runtimes = 1|public.root = /rtti_web|rails.env = development||--- Backtrace|SystemExit: exit| exit at org/jruby/RubyKernel.java:790| exit at org/jruby/RubyKernel.java:753|

at /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/gems/gems/bundler-2.2.28/lib/bundler/setup.rb:17| require at org/jruby/RubyKernel.java:1017| require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85| at /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/config/boot.class:3| load at org/jruby/RubyKernel.java:1052| at /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/config/boot.rb:1| require at org/jruby/RubyKernel.java:1017| require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85| load_environment at uri:classloader:/jruby/rack/rails/environment3.rb:23| load_environment at uri:classloader:/jruby/rack/rails_booter.rb:83| at <script>:1||--- RubyGems|Gem.dir: /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/gems|Gem.path:|/home/in-lt-89/.gem/jruby/2.6.0|uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared|/tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/gems|Activated gems:| jar-dependencies-0.4.1| did_you_mean-1.3.0| bundler-2.2.28||--- Bundler|Bundler.bundle_path: /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/gems|Bundler.root: /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF|Gemfile: /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/Gemfile|Settings:| gemfile = /tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/WEB-INF/Gemfile| quantuminventions.jfrog.io = santanu.bhattacharya:1Jamphibia_anura1| without = [:development, :test, :assets]||--- JRuby-Rack Config|compat_version = |default_logger = org.jruby.rack.logging.StandardOutLogger@225ddf5f|equals = <error: >|err = java.io.PrintStream@74badf19|filter_adds_html = true|filter_verifies_resource = false|ignore_environment = false|initial_memory_buffer_size = |initial_runtimes = 1|jms_connection_factory = |jms_jndi_properties = |logger = org.jruby.rack.logging.ServletContextLogger@59b3f754|logger_class_name = servlet_context|logger_name = jruby.rack|maximum_memory_buffer_size = |maximum_runtimes = 1|num_initializer_threads = |out = java.io.PrintStream@8315e4a|rackup = |rackup_path = |rewindable = true|runtime_arguments = |runtime_environment = |runtime_timeout_seconds = |serial_initialization = false|servlet_context = ServletContext@o.e.j.w.WebAppContext@63753b6d{/,file:/tmp/jetty-0.0.0.0-8080-rtti_web.war--any-145514313392485866.dir/webapp/,STARTING}{file:/home/in-lt-89/dev/rtti-web/web/rtti_web.war}|throw_init_exception = false|
2021-10-06 13:14:36.767:WARN:/:main: ERROR: initialization failed

@toao
Copy link

toao commented Apr 4, 2023

Issue is still happening with fast_excel 0.4.1

We're using jruby 9.4.2.0, tomcat 8.5.85-jdk8 and warbler 2.0.5 (441a99ad1dbc9cac7df2c2beca6a91f21ced60fa)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants