Ruby on Rails -- WEBrick OK, Apache isn't

Discussion in 'Ruby' started by vf5qd1j02@sneakemail.com, Feb 6, 2006.

  1. Guest

    I'm trying to get a Ruby on Rails application to work under Apache. It
    works fine when run under WEBrick (via "ruby script/server"). I copied
    the "public" directory (as well as "lib", "app", and "config") to my
    preferred Apache directory (see below for details). As told in
    instructions on a web page, I tried executing "dispatch.fcgi". It gets
    a "Internal Server Error". Far below is the output of "ruby --debug
    ../dispatch.fcgi".

    I'm running

    fedora-release 3-9_2.rhfc3.at
    ruby 1.8.4-1.fc3
    rails 1.0.0
    httpd 2.0.53
    mod_fastcgi 2.4.2
    actionmailer 1.1.5
    actionpack 1.11.2
    actionwebservice 1.0.0
    activerecord 1.13.2
    activesupport 1.2.5
    fcgi 0.8.6.1
    mysql 2.7
    rake 0.7.0
    sources 0.0.1

    --------------------------------------------------------------------------------------------------------------

    Exception `MissingSourceFile' at
    /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/container/action_controller_container.rb:68
    - Missing API definition file in apis/application_api.rb
    Exception `ActionController::RoutingError' at
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:469
    - Recognition failed for ""
    Exception `NoMethodError' at
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/whiny_nil.rb:35
    - You have a nil object when you didn't expect it!
    The error occured while evaluating nil.downcase
    Set XSD::XMLParser::REXMLParser as XML processor.
    Status: 500 Internal Server Error
    Exception `NameError' at
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/object_and_class.rb:4
    - constant Object::ApplicationController not defined
     
    , Feb 6, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Abraham Vionas
    Replies:
    1
    Views:
    157
    Sarah Tanembaum
    Dec 1, 2004
  2. Lloyd Zusman
    Replies:
    2
    Views:
    439
  3. Josef 'Jupp' SCHUGT
    Replies:
    5
    Views:
    217
    Stephan Kämper
    Jan 24, 2006
  4. Aaron Smith

    WEBrick::Daemon and WEBrick

    Aaron Smith, Mar 9, 2007, in forum: Ruby
    Replies:
    2
    Views:
    342
    Aaron Smith
    Mar 18, 2007
  5. ad
    Replies:
    3
    Views:
    229
    Ryan Davis
    Dec 29, 2009
Loading...

Share This Page