jasonfs
|
Posted: November 05, 2009 14:47 by jasonfs
|
|
dear groupies, i am having a few problems and hope someone can point me in the right direction. I am using warbler 0.9.14 to create a war file for the glassfish v3 prelude app server build b28f. The war file includes these gems which I declared in the warble.rb file in the conf directory. GEMS ===== jruby 1.4.0 rails 2.3.4 activerecord-jdbc-adapter 0.9.2 jdbc-postgres 8.3.604 activerecord-jdbcpostgresql-adapter 0.9.2 jruby-openssl 0.5.2 My non standard settings in the warble.rb file are as follows: ============================================== config.staging_dir = "tmp/war" config.dirs = %w(app config lib log vendor tmp) config.gems += ["activerecord-jdbcpostgresql-adapter", "jdbc-postgres", "activerecord-jdbc-adapter", "jruby-openssl"] config.gem_dependencies = true config.webxml.booter = :rails Now the issue that I am having is that after i deploy the war file to glassfish i can start the application through the web browser: A. exactly once when the application is in development mode - a refresh on the browser results in no response B. exactly no response when the application is in production mode. I read somewhere that the there could be an issue with the rack that causes the "run once" problem - but only in development mode - unfortunately the app does not start in production mode. Now here is the real issue - i cannot find any log files that might suggest what is going wrong. The application production / development log files are empty and the server.log files reports nothing about the application crashing - where or why. It last entry was reporting the application server come up. Can anyone point me in the right direction - either with some idea of what is going wrong - or some way of getting output from the application or the application server telling me what is happening ?? Thanks a million for any feedback. Jason. |
rails app in production mode blows up.
Replies: 1 - Last Post: November 06, 2009 16:27
by: jasonfs
by: jasonfs
showing 1 - 2 of 2
jasonfs
|
Posted: November 06, 2009 16:27 by jasonfs
|
|
ok, just to clean up and end this thread! and even if it makes me look like a dork - the solution is: make sure you have a database for the mode you are in. i.e. I have no database set up for production mode. I have got no idea why i was not getting any feedback from any of the software (jruby with glassfish, juby with mongrel, ruby with mongrel). I did not look in to any further. I am happy to report that the warbler did its job and my little app was up and running : apparently multithreadable with a connection pool. jason. |
Replies: 1 - Last Post: November 06, 2009 16:27
by: jasonfs
by: jasonfs






