Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#620 3 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
22/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java, rails, ruby
Domínio
build-system

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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>'
Linguagem predominante
Ruby
Estrelas
901
Forks
206
Merge médio
1d 2h
PRs com merge (30d)
4

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de jruby/warbler

Todas as issues de jruby/warbler

Issues semelhantes

Mais issues de Ruby

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.