Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8872415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:13:03+00:00 2026-06-14T18:13:03+00:00

I am newbie in the ruby world, after doing some research I can generate

  • 0

I am newbie in the ruby world, after doing some research I can generate a demo rails application and testing on the webrick server

But I have encounter the problem when I start to deploy with tomcat
I use warbler to generate war file for deployment successfully without error
Copy the war under the folder of webapps on Tomcat 7.0
start the server and try to run on the browser
I found that assets file is not accessible & the controller method cannot redirect to correct view, but display “We’re sorry, but something went wrong.” message

Config of the deployment I have try

JRuby 1.7.0
Gems    
    jruby-rack 1.1.10, 1.0.10
    rails 3.2.9, 3.2.0
    warbler 1.3.6, 1.3.2
Tomcat 7.0.32

here is the access log from tomcat

127.0.0.1 - - [20/Nov/2012:13:56:38 +0800] "GET /demo/ HTTP/1.1" 200 5906
127.0.0.1 - - [20/Nov/2012:13:56:49 +0800] "GET /demo/assets/rails.png HTTP/1.1" 404 728
127.0.0.1 - - [20/Nov/2012:14:01:21 +0800] "GET /demo/order/add HTTP/1.1" 500 643

here is the log form tomcat

    2012/11/20 13:56:18 org.apache.catalina.core.ApplicationContext log

    INFO: jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) Client VM 1.6.0_34-b04 [Windows XP-x86]

    2012/11/20 13:56:18 org.apache.catalina.core.ApplicationContext log

    INFO: using : runtime pool with acquire timeout of 10.0 seconds

    2012/11/20 13:56:19 org.apache.catalina.core.ApplicationContext log

    ContextListener: contextInitialized()

    2012/11/20 13:56:19 org.apache.catalina.core.ApplicationContext log

    SessionListener: contextInitialized()

    2012/11/20 13:56:19 org.apache.catalina.core.ApplicationContext log

    ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1858aa0')

    2012/11/20 01:56:38 org.apache.catalina.core.ApplicationContext log

    INFO: pool was empty - getting new application instance

    2012/11/20 01:56:47 org.apache.catalina.core.ApplicationContext log

    Started GET "/demo/assets/rails.png" for 127.0.0.1 at 2012-11-20 13:56:47 +0800


    2012/11/20 01:56:47 org.apache.catalina.core.ApplicationContext log

    Connecting to database specified by database.yml


    2012/11/20 01:56:49 org.apache.catalina.core.ApplicationContext log


    ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):
    gems/gems/actionpack-3.2.9/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
    gems/gems/actionpack-3.2.9/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
    gems/gems/railties-3.2.9/lib/rails/rack/logger.rb:32:in `call_app'
    gems/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:in `call'
    gems/gems/activesupport-3.2.9/lib/active_support/tagged_logging.rb:22:in `tagged'
    gems/gems/railties-3.2.9/lib/rails/rack/logger.rb:16:in `call'
    gems/gems/actionpack-3.2.9/lib/action_dispatch/middleware/request_id.rb:22:in `call'
    gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
    gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
    gems/gems/activesupport-3.2.9/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
    gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
    gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
    gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
    gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
    gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
    gems/gems/railties-3.2.9/lib/rails/engine.rb:479:in `call'
    gems/gems/railties-3.2.9/lib/rails/application.rb:223:in `call'
    file:/lib/jruby-rack-1.1.10.jar!/rack/handler/servlet.rb:22:in `call'




    2012/11/20 14:01:21 org.apache.catalina.core.ApplicationContext log

    Started GET "/demo/order/add" for 127.0.0.1 at 2012-11-20 14:01:21 +0800


    2012/11/20 14:01:21 org.apache.catalina.core.ApplicationContext log

    Processing by OrderController#add as HTML


    2012/11/20 14:01:21 org.apache.catalina.core.ApplicationContext log

    Rendered order/add.html.erb within layouts/application (16.0ms)


    2012/11/20 14:01:21 org.apache.catalina.core.ApplicationContext log

    Completed 500 Internal Server Error in 78ms

It’s seem that the routing problem is occur, is it the problem when I deploy the rails application other than the ROOT location?

I have research the similar topic of this, I have try some solution, such as
adding the below command at production.rb, but no help.

config.action_controller.relative_url_root = "/demo"

Thanks for your solutions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:13:04+00:00Added an answer on June 14, 2026 at 6:13 pm

    Did you precompile your assets before warbling?

    You need to run rake assets:precompile to generate static content before running warble

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newbie o thin. I have a ruby on rails application. Today I
First of all, I'm a Rails newbie. I can hold my own in Ruby,
I'm a ruby/rails newbie and need to make a hash which can be manipulated
I am a Ruby newbie. I am designing a web application and plan to
I am newbie in Ruby.. seeking some help.. I have a code DB =
I am a newbie to Ruby on Rails . I have started working on
I am a Ruby newbie. How can I write better for this function? can
I am facing Following problem, since i m a newbie to ruby on rails
I a newbie trying to write a [Ruby ON Rails] spec to make sure
I'm a Ruby on Rails newbie. I'm learning Rails in my spare time (my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.