# Problem deploying Rails 2.0.2 app in Tomcat

**URL:** <https://www.ruby-forum.com/t/problem-deploying-rails-2-0-2-app-in-tomcat/126811>\
**Category:** Deployment\
**Created:** [January 22, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/problem-deploying-rails-2-0-2-app-in-tomcat/126811 "2008-01-22T13:57:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharathchunchu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@bharathchunchu](https://www.ruby-forum.com/u/bharathchunchu)\
**Post date:** [January 22, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/problem-deploying-rails-2-0-2-app-in-tomcat/126811/1 "2008-01-22T13:57:56Z")

</div>

Hi,  
I am trying to run rails application in Tomcat.While running I am  
getting fallowing exception.

I am using JRuby-1.0.3 version.

Jan 22, 2008 4:15:26 PM org.apache.catalina.core.ApplicationContext log  
INFO: Failed to load Rails: No such file or directory -  
C:/Tomcat-5.5.12/bin/C:  
file:/C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/lib/jruby-complete-1.0  
.jar!/pathname.rb:420:in `realpath_rec' file:/C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/lib/jruby-complete-1.0 .jar!/pathname.rb:453:in`realpath’  
C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/gems/gems/rails-2.0.2/lib/in  
itializer.rb:495:in `set_root_path!' C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/gems/gems/rails-2.0.2/lib/in itializer.rb:461:in`initialize’  
C:/Tomcat-5.5.12/webapps/Workorders//config/boot.rb:40:in `new' C:/Tomcat-5.5.12/webapps/Workorders//config/boot.rb:40:in`run’  
C:/Tomcat-5.5.12/webapps/Workorders//config/boot.rb:40:in `run' C:/Tomcat-5.5.12/webapps/Workorders//config/boot.rb:11:in`boot!’  
C:/Tomcat-5.5.12/webapps/Workorders//config/boot.rb:109  
file:/C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/lib/jruby-complete-1.0  
.jar!/META-INF/jruby.home/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:i  
n `require' file:/C:/Tomcat-5.5.12/webapps/Workorders/WEB-INF/lib/jruby-complete-1.0 .jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:i n`require’  
C:/Tomcat-5.5.12/webapps/Workorders//config/environment.rb:12  
:0
