# Rails Application error

**URL:** <https://www.ruby-forum.com/t/rails-application-error/115449>\
**Category:** Rails\
**Created:** [September 25, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449 "2007-09-25T13:29:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 25, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449/1 "2007-09-25T13:29:25Z")

</div>

Hi,

My application is giving error "Application error (Apache)

Change this error message for exceptions thrown outside of an action  
(like in Dispatcher setups or broken Ruby code) in public/500.html".

Although am not using Apache as a web server but it is installed on my  
system. I am using WebRick Server. All other applications are running,  
but when i am trying to run a particular application this error is  
coming.

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 25, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449/2 "2007-09-25T13:47:00Z")

</div>

Ruchita S. wrote:

> Any help would be greatly appreciated.

Can you give us a bit more info?

Are you running the app using the command line:

ruby script/server

If so does it give you an error there?

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 25, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449/3 "2007-09-25T14:25:12Z")

</div>

Ruchita S. wrote:

> Hi,
> 
> My application is giving error "Application error (Apache)  
> Although am not using Apache as a web server but it is installed on my  
> system. I am using WebRick Server. All other applications are running,

try shutting down the apache server. if it is giving u an Apache error  
just shut the thing down. you don’t need an apache server in the  
background to see u’r app. maybe it is overriding some of the defaults  
webrick thinks it has and … crash .

worth checking out.  
htw

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 26, 2007, 7:36am UTC](https://www.ruby-forum.com/t/rails-application-error/115449/4 "2007-09-26T07:36:27Z")

</div>

I have stopped the apache server and tried it again. It is giving the  
same error.

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 25, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449/5 "2007-09-25T13:57:16Z")

</div>

Luke P. wrote:

> Ruchita S. wrote:
> 
> > Any help would be greatly appreciated.
> 
> Can you give us a bit more info?
> 
> Are you running the app using the command line:
> 
> ruby script/server
> 
> If so does it give you an error there?

yes… am using the app using the command line:

ruby script/server. Server is starting properly, it is not giving any  
error.  
When i am typing "[http://localhost:3000/login](http://localhost:3000/login) " on browser then its  
giving error.

“Application error”

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 26, 2007, 11:32am UTC](https://www.ruby-forum.com/t/rails-application-error/115449/6 "2007-09-26T11:32:53Z")

</div>

Can you check if the server is intialized properly by opening the  
url : “[http://localhost:3000](http://localhost:3000)” i.e. without your controller, if it  
works fine, most probably you need there’s some problem with your  
controller class.

~Shishir

On Sep 26, 2:03 pm, Luke P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 26, 2007, 11:54am UTC](https://www.ruby-forum.com/t/rails-application-error/115449/7 "2007-09-26T11:54:05Z")

</div>

Hi,

I had tried to open the url : “[http://localhost:3000](http://localhost:3000)” , it is giving the  
same error. Now what should i do?

–Ruchita

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 26, 2007, 11:03am UTC](https://www.ruby-forum.com/t/rails-application-error/115449/8 "2007-09-26T11:03:50Z")

</div>

You’d usually only get that if you are somehow running in production  
mode or if something is seriously wrong with your development  
environment and it can’t start up properly.

Few things you could try:

1. Ensure you are running in development mode:

ruby script/server -edevelopment

Just to make sure you are running in development mode.

1. Can you return a model from the console? (i.e.  
ExistingModel.find(:all)

ruby script/console

This will confirm that you can connect to the database okay.

1. Check your log files for any errors & make sure they are writable

2. At a last resort I’d try to create a dummy controller or strip some  
code from an existing one so all your doing is returning a static page  
and gradually add it back in until it falls over.

Cheers  
Luke

---

<div class="post-metadata">

**Author:** ![ruchita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Post date:** [September 26, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449/9 "2007-09-26T14:13:36Z")

</div>

I am not sure, what’s wrong with your webrick server, but I would  
suggest you to try switching to mongrel and see if it works fine. I am  
assuming your ruby installation is fine and without any issues.

you can run ‘gem install mongrel’ and then select the appropriate  
version to install the same…

hope this works…

~shishir

On Sep 26, 2:54 pm, Ruchita S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
