I am hoping that someone can give me some guidelines on using Warbler in 
conjunction with Hobo
I am using:

   - Hobo 2.2.3
   - JRuby 9.0.1.0
   - PostgreSQL
   - Warbler 2.0.0.rc1

I package my web app into a war file using the command "jruby -S bundle 
exec warble". I then deploy the war file onto Glassfish 4.1. The deploy is 
successful, but the web app doesn't work. I can bring the entry page of the 
web app up in a web browser, but the formatting is gone. The Glassfish log 
file shows that the style-sheet and JavaScript files aren't found  (see 
below). Glassfish is expecting the style-sheet and JavaScript directories 
to be located just off the war file root directory, which is not where Hobo 
places them. If I click on a link on the web app entry page, I get a "page 
not found" error. 


I get the same results as above when I use earlier versions of Hobo, and 
when I use JRuby 1.7.22 with Warbler 1.4.9. I have also tried "jruby -S 
warble", without "bundle exec". This looks to be a simple context problem, 
which I suspect has an easy fix, but I'm not seeing it at this point. Can 
someone point me in the right direction?



*Glassfish 4.1 log file errors:*

[2015-09-24T14:04:20.391-0600] [glassfish 4.1] [INFO] [] 
[javax.enterprise.web] [tid: _ThreadID=26 _ThreadName=http-listener-1(2)] 
[timeMillis: 1443125060391] [levelValue: 800] [[
  WebModule[null] ServletContext.log():F, [2015-09-24T14:04:20.390000 
#1184] FATAL -- : 
ActionController::RoutingError (No route matches [GET] 
"/stylesheets/front.css"):
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:21:in
 
`call'
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in
 
`call'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in 
`block in tagged'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in 
`tagged'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in 
`tagged'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
  gems/gems/request_store-1.2.0/lib/request_store/middleware.rb:8:in `call'
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in 
`call'
  gems/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  gems/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  
gems/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
 
`call'
  gems/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  gems/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
  gems/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
  uri:classloader:/rack/handler/servlet.rb:22:in `call'


]]

[2015-09-24T14:04:20.404-0600] [glassfish 4.1] [INFO] [] 
[javax.enterprise.web] [tid: _ThreadID=27 _ThreadName=http-listener-1(3)] 
[timeMillis: 1443125060404] [levelValue: 800] [[
  WebModule[null] ServletContext.log():I, [2015-09-24T14:04:20.404000 
#1184]  INFO -- : Started GET "/carmaint/javascripts/front.js" for 
0:0:0:0:0:0:0:1 at 2015-09-24 14:04:20 -0600
]]

[2015-09-24T14:04:20.408-0600] [glassfish 4.1] [INFO] [] 
[javax.enterprise.web] [tid: _ThreadID=27 _ThreadName=http-listener-1(3)] 
[timeMillis: 1443125060408] [levelValue: 800] [[
  WebModule[null] ServletContext.log():F, [2015-09-24T14:04:20.408000 
#1184] FATAL -- : 
ActionController::RoutingError (No route matches [GET] 
"/javascripts/front.js"):
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:21:in
 
`call'
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in
 
`call'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in 
`block in tagged'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in 
`tagged'
  gems/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in 
`tagged'
  gems/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
  gems/gems/request_store-1.2.0/lib/request_store/middleware.rb:8:in `call'
  
gems/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in 
`call'
  gems/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
  gems/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
  
gems/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
 
`call'
  gems/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
  gems/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
  gems/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
  uri:classloader:/rack/handler/servlet.rb:22:in `call'



-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to