Ruby on Rails with Apache2, MS SQL on Windows XP

My app was running fine with Linux, Apache2/Lighttpd and MySQL. I have a
need to migrate to Windows, Apache2 and MS SQL. But I keep getting the
following error when I load the initial home page. Anyone can please
give me a pointer where to go next for troubleshooting? Thanks in
advance.

NameError in #

uninitialized constant AcquisitionController

RAILS_ROOT: C:/rails/bdo/acquisition/public/…/config/…
Application Trace | Framework Trace | Full Trace

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in
const_missing' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:inconst_missing’
generated/routing/recognition.rb:4:in `recognize_path’

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in
const_missing' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:inconst_missing’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:458:in
recognize!' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:indispatch’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in
process_request' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:inprocess!’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
each_cgi' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:ineach’
C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in each_cgi' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:inprocess!’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in
`process!’
C:/rails/bdo/acquisition/public/dispatch.fcgi:24

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in
const_missing' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:inconst_missing’
generated/routing/recognition.rb:4:in recognize_path' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:458:inrecognize!’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:inprocess_request’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in
process!' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:ineach_cgi’
C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in each' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:ineach_cgi’
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
process!' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:inprocess!’
C:/rails/bdo/acquisition/public/dispatch.fcgi:24

Request

Parameters: None

Show session dump

— {}

Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

Anyone can shed some light here?

I am using Ruby 1.8.2-15, Rails 1.0.0, ActiveRecord 1.13.2, ActionPack
1.11.2, ActiveSupport 1.2.5

My connectivity to MS SQL is good.
My Apache start and stop fine.
The only problem it seems is related to configuration. Somehow, the
loading of all the application classes is not there. Is this
configuration problem with Apache2? or configuration with Rail? If so,
any hint where I should look? Thanks in advance.

On Wednesday, February 22, 2006, at 10:54 PM, Chester wrote:

I am using Ruby 1.8.2-15, Rails 1.0.0, ActiveRecord 1.13.2, ActionPack
1.11.2, ActiveSupport 1.2.5


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


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

I would say that the problem is not with Apache or MS-SQL. That seems
more like a Ruby type error. If it was Apache, you wouldn’t be seeing
the error messages. MS-SQL, Ruby would complain about the connection or
something being nil.

Some random throughts that might help…

Is apache2 starting your fastcgi or are they running seperately? I could
only get fastcgi to work on windows running outside apache. Perhaps you
should look at your apache logs. Also have you tried running under cgi.
Finally can you get the standard rails home page to work with a default
app?

I tried to run it on WEBrick. Same result. I am using mod_fastcgi with
Apache2.

Andrew P. wrote:

Some random throughts that might help…

Is apache2 starting your fastcgi or are they running seperately? I could
only get fastcgi to work on windows running outside apache. Perhaps you
should look at your apache logs. Also have you tried running under cgi.
Finally can you get the standard rails home page to work with a default
app?

Just try it with mod_cgi as well. Same result.

Andrew P. wrote:

Some random throughts that might help…

Is apache2 starting your fastcgi or are they running seperately? I could
only get fastcgi to work on windows running outside apache. Perhaps you
should look at your apache logs. Also have you tried running under cgi.
Finally can you get the standard rails home page to work with a default
app?