Unable to install Warbler off master - get File loading error -- warbler_jar
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jruby/warbler 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 12/100
-
难度 5/5 一周以上 新手友好度 12/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
lugassawan/swe-workbench#823 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
rubyjs/mini_racer#449 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
[BUG]: Export Donations button state not updating可能已有人在做 @yashiyadav 今天认领。 未关闭🐞 Bug
难度 2/5 1-3 小时 新手友好度 64/100
rubyforgood/human-essentials#5744 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
paradigmxyz/centaur#2034 ·
维护者通常 1 天内回复