Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Unable to install Warbler off master - get File loading error -- warbler_jar

未关闭
#620 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java, rails, ruby
领域
build-system

调研方向

The failure is a LoadError for warbler_jar raised from lib/warbler/jar.rb (around lines 12, 19 and 336) when running under JRuby 10.0.4.0, and from the Rakefile line 8 in the linked test app. Start by checking how warbler_jar is resolved and whether the bundled-gems require replacement in that path is responsible, then try rails war or bundle exec warble on the test repo. Done means the build produces a .war file on JRuby 10 without the LoadError. This needs JRuby and Warbler packaging knowledge, and the thread has had no reply for six months.

由索引模型根据 Issue 内容生成。

描述

I’m testing a Rails 8.0.4 app on JRuby 10.0.4.0 using warbler from the master branch (as of April 7, 2026), and running into a build failure.

I've forked a previous reports minimal test app (from #560) for this test. The app is completely minimal and exists specifically to demonstrate this problem. You can find it here:

https://github.com/sis-berkeley-edu/warbler_test

Environment:

  • JRuby: 10.0.4.0
  • Rails: 8.0.4
  • Java: OpenJDK 21.0.8
  • Tomcat: 9.0.117
  • OS: macOS Sequoia 15.7.3 (Apple Silicon)
  • jruby-rack: master branch from jruby/jruby-rack
  • warbler: master branch from jruby/warbler

When I try to run a build with this test app, I get:

$ rails war
bin/rails aborted!
LoadError: cannot load such file -- warbler_jar (LoadError)
/Users/jason.c.miller/Developer/warbler_test/Rakefile:8:in '<main>'
bin/rails:4:in '<main>'
(See full trace by running task with --trace)

When I try to run a build from another project I receive:

$ bundle exec warble
bundler: failed to load command: warble (/Users/jason.c.miller/.rbenv/versions/jruby-10.0.4.0/lib/ruby/gems/shared/bin/warble)
org/jruby/RubyKernel.java:1193:in 'require': cannot load such file -- warbler_jar (LoadError)
        from /Users/jason.c.miller/.rbenv/versions/jruby-10.0.4.0/lib/ruby/stdlib/bundled_gems.rb:81:in 'block in replace_require'
        from /Users/jason.c.miller/.rbenv/versions/jruby-10.0.4.0/lib/ruby/gems/shared/bundler/gems/warbler-95db95756ebd/lib/warbler/jar.rb:336:in '<class:Jar>'
        from /Users/jason.c.miller/.rbenv/versions/jruby-10.0.4.0/lib/ruby/gems/shared/bundler/gems/warbler-95db95756ebd/lib/warbler/jar.rb:19:in '<module:Warbler>'
        from /Users/jason.c.miller/.rbenv/versions/jruby-10.0.4.0/lib/ruby/gems/shared/bundler/gems/warbler-95db95756ebd/lib/warbler/jar.rb:12:in '<main>'
主要语言
Ruby
星标
901
派生
206
平均合并
1 天 10 小时
30 天内合并 PR
3

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jruby/warbler 的其他 Issue

查看 jruby/warbler 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。