Question: Generate war file using warbler


Generate war file using warbler

Answers 1
Added at 2016-12-08 09:12

I am trying to generate war file using warbler for jruby, but i got stuck and i am getting this error:

warble aborted!
NoMethodError: undefined method `booter=' for nil:NilClass
config/warble.rb:9:in `block in initialize' /Users/xxx/.rvm/gems/jruby- `initialize'
config/warble.rb:4:in `<eval>' 
/Users/xxx/.rvm/gems/jruby- `initialize'
/Users/xxx/.rvm/gems/jruby- `load_rakefile' 
/Users/xxx/.rvm/gems/jruby- `run'
/Users/xxx/.rvm/gems/jruby- `run' 
/Users/xxx/.rvm/gems/jruby- `<top>'
/Users/xxx/.rvm/gems/jruby- `<top>'
(See full trace by running task with --trace)

my config file in config/warble.rb: do |config|
  config.dirs = %w(app config views)
  config.gems += ["sinatra"]
  config.gems -= ["rails"]
  config.jar_name = "jsinatra"
  config.webxml.booter = :rack
  config.webxml.jruby.compat.version = "1.9"
  config.webxml.rackup.path = '/WEB-INF/'

any help, advice apricciated. thank you.

over all, i am trying to create docker container and i am using pdf file as a reference but the pdf is somehow vaguely written.

nr: #1 dodano: 2016-12-09 14:12

Worked for me

In the pdf I posted there is file named with this contents:

require "sinatra"
require File.dirname(__FILE__) + '/app/main'
run MyApp

After hours of googling, I decided to create identical file and name it Worked.

Not working

I have also tried to change

config.webxml.rackup.path = '/WEB-INF/'


config.webxml.rackup.path = '/WEB-INF/'

Did not work.

Source Show
◀ Wstecz