Rails 3 + Tomcat Issues

Hi all,

I’m using Warble to deploy the barebones Rails 3 app to a Tomcat
container (it’s the app you get by default when creating a Rails 3 app
using the command line).

The homepage loads just fine, but when I click on the ‘About your
application’s environment’ link, I get the following error:

No such file to load –
/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’

Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?

Thanks in advance,
Baq

On Wed, Sep 8, 2010 at 5:54 AM, Baq H. [email protected] wrote:

/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’

Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?

Thanks in advance,
Baq

For reasons I haven’t had time to explore, the /rails/info/properties
page hasn’t worked inside a .war file. I haven’t seen your error
before, and could be indicative of something new. But the basic
request has unfortunately been broken for a while.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks for the tip! I was able to verify that when the war is exploded,
I don’t get the error. I get a different error involving the
production.sqlite3 file being missing (which was never created by the
app creation script).

It would be nice to have that war problem fixed, but it’s not a blocker.

Is there a good reference out there on what to remove from the standard
app if you don’t have a backend database, but rather backend web
services?

Thanks,
Baq

Nick S. wrote:

On Wed, Sep 8, 2010 at 5:54 AM, Baq H. [email protected] wrote:

/localhost/skills-rails/WEB-INF/config/environment.rb from
file:/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/lib/jruby-rack-1.0.3.jar!/jruby/rack/rails.rb:44:in
`load_environment’

Why is the path ‘/localhost/…’ instead of
‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?

Thanks in advance,
Baq

For reasons I haven’t had time to explore, the /rails/info/properties
page hasn’t worked inside a .war file. I haven’t seen your error
before, and could be indicative of something new. But the basic
request has unfortunately been broken for a while.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Ok, I did that and that seemed to work when I ran it inside the WEBrick
server, but when I deployed the exploded war file into Tomcat it can’t
resolve the /rails/info/properties because it says that there’s no route
for it.

Is there something funky happening between development and production
configurations?

Nick S. wrote:

If you’re using Rails 3 but don’t need ActiveRecord, using
–skip-active-record works well. Mostly you just need to change Gemfile
and config/application.rb.

/Nick

If you’re using Rails 3 but don’t need ActiveRecord, using
–skip-active-record works well. Mostly you just need to change Gemfile
and config/application.rb.

/Nick

On Sep 8, 2010, at 18:52, Baq H. [email protected] wrote:

‘/Users/bhaidri/code/nextgen-ui/dist/tomcat-container/work/public/localhost/myapp/WEB-INF/config/environment.rb’?

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email