Need Help again ! Jboss deploy error

I’m still new with jruby. I have create very simple rails application.
They use warbler to make .war file.

After put it to Jboss 5.1 server I have got this message when access the
controller

===========================================================

[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myapp]]
(http-0.0.0.0-8080-8) Application Error
classpath:/./rack/handler/servlet.rb:19:in call': undefined methodcall’ for nil:NilClass (NoMethodError)
    from :1
    …internal jruby stack elided…
    from Rack::Handler::Servlet.call(:1)
    from (unknown).(unknown)(:1)open 1

===========================================================

Sincerely Yours,
Pinit A.

what versions of jruby-rack and jruby and warbler are you using?.. If
they are not the latest then upgrade them.

If they are the latest… what does a jar -tf on your war file show?

On Sat, Jun 26, 2010 at 11:01 AM, Pinit A.
[email protected] wrote:

classpath:/./rack/handler/servlet.rb:19:in `call’: undefined method

Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Finally the problem is about warble config which I set rack as boot.
By let it autodetect. everything work now.

Thank you very much
Pinit A.

Jay McGaffigan wrote:

what versions of jruby-rack and jruby and warbler are you using?.. If

It’s lastest jruby 1.5.1 I have installed a few day ago.
warbler is (1.1.0)

they are not the latest then upgrade them.

If they are the latest… what does a jar -tf on your war file show?

MacPro:tmp cyberjom$ jar -tf myapp.war
404.html
422.html
500.html
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/app/
WEB-INF/app/controllers/
WEB-INF/app/controllers/application_controller.rb
WEB-INF/app/controllers/examples_controller.rb
WEB-INF/app/helpers/
WEB-INF/app/helpers/application_helper.rb
WEB-INF/app/helpers/examples_helper.rb
WEB-INF/app/models/
WEB-INF/app/models/example.rb
WEB-INF/app/views/
WEB-INF/app/views/examples/
WEB-INF/app/views/examples/edit.html.erb
WEB-INF/app/views/examples/index.html.erb
WEB-INF/app/views/examples/new.html.erb
WEB-INF/app/views/examples/show.html.erb
WEB-INF/app/views/layouts/
WEB-INF/app/views/layouts/examples.html.erb
WEB-INF/config/
WEB-INF/config/boot.rb
WEB-INF/config/database.yml
WEB-INF/config/environment.rb
WEB-INF/config/environments/
WEB-INF/config/environments/development.rb
WEB-INF/config/environments/production.rb
WEB-INF/config/environments/test.rb
WEB-INF/config/initializers/
WEB-INF/config/initializers/backtrace_silencers.rb
WEB-INF/config/initializers/cookie_verification_secret.rb
WEB-INF/config/initializers/inflections.rb
WEB-INF/config/initializers/jdbc.rb
WEB-INF/config/initializers/mime_types.rb
WEB-INF/config/initializers/new_rails_defaults.rb
WEB-INF/config/initializers/session_store.rb
WEB-INF/config/locales/
WEB-INF/config/locales/en.yml
WEB-INF/config/routes.rb
WEB-INF/config/warble.rb
WEB-INF/lib/
WEB-INF/lib/jruby-core-1.5.1.jar
WEB-INF/lib/jruby-rack-1.0.1.jar
WEB-INF/lib/jruby-stdlib-1.5.1.jar
WEB-INF/lib/tasks/
WEB-INF/lib/tasks/jdbc.rake
WEB-INF/log/
WEB-INF/tmp/
WEB-INF/tmp/cache/
WEB-INF/tmp/pids/
WEB-INF/tmp/sessions/
WEB-INF/tmp/sockets/
WEB-INF/vendor/
WEB-INF/vendor/bundler_gems/
WEB-INF/vendor/bundler_gems/gems/
…many gems

WEB-INF/vendor/bundler_gems/specifications/
WEB-INF/vendor/bundler_gems/specifications/actionmailer-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/actionpack-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/activerecord-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/activerecord-jdbc-adapter-0.9.7-java.gemspec
WEB-INF/vendor/bundler_gems/specifications/activerecord-jdbcsqlite3-adapter-0.9.7-java.gemspec
WEB-INF/vendor/bundler_gems/specifications/activeresource-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/activesupport-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/jdbc-sqlite3-3.6.3.054.gemspec
WEB-INF/vendor/bundler_gems/specifications/rack-1.1.0.gemspec
WEB-INF/vendor/bundler_gems/specifications/rails-2.3.8.gemspec
WEB-INF/vendor/bundler_gems/specifications/rake-0.8.7.gemspec
WEB-INF/vendor/plugins/
WEB-INF/web.xml
favicon.ico
images/
images/rails.png
index.html
javascripts/
javascripts/application.js
javascripts/controls.js
javascripts/dragdrop.js
javascripts/effects.js
javascripts/prototype.js
robots.txt
stylesheets/
stylesheets/scaffold.css

On Sat, Jun 26, 2010 at 11:01 AM, Pinit A.
[email protected] wrote:

classpath:/./rack/handler/servlet.rb:19:in `call’: undefined method

Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

� �http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email